Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty Usage

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
Tristan
Smarty n00b


Joined: 30 May 2003
Posts: 3

PostPosted: Fri May 30, 2003 12:54 am    Post subject: Smarty Usage Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri May 30, 2003 3:48 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP