Fri Nov 18 23:30:26 2005

Ticket #1533 (Closed: invalid)

Comment for Ticket #1370


Priority: normal Reporter: [email protected]
Severity: minor Assigned to: anonymous
Component: Admin Interface Status: closed
Version: 2.3.0 Resolution: invalid
Milestone: 2.4.0 Keywords:  

Description by [email protected]:

I can see why you are suggesting smarty.

Some reasons against it: Smarty is not as good as the campsite template language which is well designed for the job, although smarty is more popular.

Here to blow my own trumpet and suggest using straight php and slightly marked up html. I have a template system which renders tagged html into php classes so they can be subclassed and superclassed and pass parameters etc.

If you are interested read up here: http://www.liddicott.com/templates.html

I'm due a new release which fixes some bugs and allows the ability to replace <object> tags at runtime with target-browser-specific content instead, but anyway...

The reason I suggest this template mechanism is that it avoids embedding logic into the design, but leaves that in the php. The designers html (which gets converted to php) and the programmers php sit side by side but can each be revised independently.

Sam

Changelog

Sat Nov 19 10:25:44 2005: Modified by mugur

  • resolution set to invalid
  • status changed from new to closed

The new template language implemented on Smarty will look almost exactly like the current one. So there will be no change in web designer's experience. He/she will not have to write complex logic into HTML.