By chrisada on
I have seen the smarty theme engine in CVS for a while, but could not figure out how to use it. Is there any theme that make use this that I can use as example?
http://cvs.drupal.org/viewcvs/contributions/theme-engines/smarty/
I'm using phptemplate on my site ( http://ichris.ws ) now and am quite happy with it. But I have heard good things about smarty (on this site and smarty's) for the longest time and would like to try it out.
Chris
Comments
nice
though I am learning to really like phpTemplate, I have used smarty many times and would enjoy using both.
i'll take a look at this, but I think you will need to download smarty and get that up on your server first then edit SmartyTemplate.class.php
Doesn't look finished
A quick search of CVS logs revealed that there's a box_grey_smarty theme.
However: I may be missing something but there seems to be no "smarty.engine" file for the smarty theme engine. Every valid theme engine for Drupal needs an ENGINENAME.engine file. Maybe the .engine file is somehow generated by smarty? I don't see this in the code anywhere, so I can't imagine how it would happen, though.
Anyway, I don't use it myself, so I don't honestly know. I'm probably showing my ignorance about the way Smarty works here. It seems to be a bit heavy for any of the sites I run, but I'm sure that's just a matter of opinion. Better instructions would most likely benefit anyone who's interested in creating a smarty theme, so if you figure it out, please let us know!
Smarty theme engine
Better yet, extend the Smarty engine's README.txt so it is clear for everyone downloading this engine. Unfortunately, there doesn't appear to be a 'Smarty project' so you can't download the Smarty theme engine from the dowload page, or file bug reports/patches against it. I guess, this project needs a maintainer.
Just an FYI:
Just an FYI:
I took over the Smarty Theme Engine project in Aug. 2005 and it is now fully functional (and very useful!).
It's project page links to converted modules.
Conversion is simple and very much worth while IMO.
Cheers