|
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 |
Lord Yggdrasill Smarty Rookie
Joined: 31 Mar 2012 Posts: 21
|
Posted: Thu Dec 13, 2012 4:59 am Post subject: One good reason to use Smarty for your site. |
|
|
PHP as a templating language just cant get more ugly, seeing a bunch of <?php and ?> tags inside an html document gives me a headache.
When it is compared to other templating softwares it becomes a matter of choice. I personally prefer Smarty's style, the usage of curly bracket to enclose variables. Even in string concatenation I prefer using curly brackets over concatenation dot operator, I feel its more readable this way.
Not sure for the security and protection part though, Smarty does have a problem in terms of referencing to external links when you have suhosin installed(which generates errors that does not display on the screen). But overall, it is the template engine to use. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Dec 13, 2012 2:54 pm Post subject: Re: One good reason to use Smarty for your site. |
|
|
Lord Yggdrasill wrote: | PHP as a templating language just cant get more ugly, seeing a bunch of <?php and ?> tags inside an html document gives me a headache.
When it is compared to other templating softwares it becomes a matter of choice. I personally prefer Smarty's style, the usage of curly bracket to enclose variables. Even in string concatenation I prefer using curly brackets over concatenation dot operator, I feel its more readable this way.
Not sure for the security and protection part though, Smarty does have a problem in terms of referencing to external links when you have suhosin installed(which generates errors that does not display on the screen). But overall, it is the template engine to use. |
Smarty cannot overcome the security settings of suhosin, nor can any other php library. That is something you need to address outside of Smarty. Also as for error display on screen, again that is controlled by your php.ini settings, not Smarty. |
|
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
|