Re: Template engines
| From: | Michael Shadle | Date: | Mon, 08 Nov 2010 22:16:25 +0000 |
| Subject: | Re: Template engines | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309384@lists.php.net to get a copy of this message | ||
i would point someone in the direction of XHP too if they really wanted to
https://github.com/facebook/xhp/wiki/
On Mon, Nov 8, 2010 at 2:10 PM, Peter Lind <peter.e.lind@gmail.com> wrote:
> On 8 November 2010 22:59, Michael Shadle <mike503@gmail.com> wrote:
>> On Mon, Nov 8, 2010 at 1:41 PM, Hansen, Mike <Mike.Hansen@atmel.com> wrote:
>>> I really like the idea of using a templating engine. Which one do you use? Why? For
>>> those that don't use templating engines, why don't you use them?
>>
>> smarty is everyone's favorite usually but i find it a bit annoying.
>>
>> not to mention php itself is already a templating language... the only
>> benefit is trying to separate content and presentation.
>>
>> however, for that to happen people create DSLs for templating that all
>> have their own little syntaxes and glitches and annoyances.
>>
>
> PHPTal is an alternative to smarty: http://phptal.org/ -
> it's got a
> nice syntax, I find.
>
> However, whether one should bother with a templating system like
> smarty or phptal very much depends upon how intricate your front-end
> system needs to be and what it needs to do. For smaller projects.
> smarty or phptal will get in the way and will likely get very
> annoying. For bigger projects they can be of great use.
>
> Regards
> Peter
>
> --
> <hype>
> WWW: plphp.dk / plind.dk
> LinkedIn: plind
> BeWelcome/Couchsurfing: Fake51
> Twitter: kafe15
> </hype>
>