How many of you use some kind of templating exngine when you are working alone? By saying alone, I mean you recieve graphic design (HTML) from your client (or do it yourself) and code the required. The question applies mainly to freelancers, I guess.
Well, why exatly would you want to use it? Since you're working alone, you can write those presentation-related echo's/if's/loops inside the HTML files without worrying some designer won't understand them.
Do you program a custom template engine (in an earlier post you said that you ususally do custom code), or do you use an established template system, such as Smarty or other?
i almost always use a template engine, not because of designers, but because i find that it's cleaner
right now, i'm using Smarty with some modifications
Last edited by andre_c on Wed Oct 12, 2005 1:43 pm, edited 1 time in total.
andre_c wrote:i almost always use a template engine, not because of designers, but because i find that it's cleaner
Well, in what way do you find it cleaner?
Actually when you're alone and you get a develop-and-forget client, I guess there's not much point in writing those custom tags and then do the replacing, as I mentioned, it's faster to write simple php snippets by hand.
In my own programming, I don't use a template engine such as Smarty. However, I have customers that run scripts that use Smarty so I know how to use it. I'm not really sure there's any savings in either method ... well except maybe performance. I still get called to install new layouts either way.