|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Tristan Smarty n00b
Joined: 30 May 2003 Posts: 3
|
Posted: Fri May 30, 2003 12:54 am Post subject: Smarty Usage |
|
|
Is using Smarty on templates with say only one variable still worth it? Or should I just use str_replace or just hard code it in to my function? I'm not using caching, so that's not an issue. Thanks. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Fri May 30, 2003 3:48 am Post subject: |
|
|
Probably not, but of course -- it depends.
- Are you already using templates for other things? If so, then yes, it definately makes sense.
- Is there a LOT of boiled text in the page (say enough that you would have to read a text file anyways)? If not, then it is almost certainly not worth it.
- do the replaced contents need be duplicated in many places (say different pages)? Does the source text need to be evaluated differently for many scenarios? If so, then probably yes.
- What type of replacement is made? Are we talking about inserting a single word or complicated prepared content, perhaps the result of a complex rule? If the latter, then probably yes.
- What is the template turnover time (ie. how often does it get updated?) If not at all, then you likely do not need templates.
Anyways, that's all I'm going to type for such a simple question |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|