From: Ed <co...@fu...> - 2002-11-17 18:30:23
|
I'd like to try working a template system into PHP ICalendar, in order to improve separation of presentation and logic. There are several options available, and I'd like to get some opinions on what folks think would be a good choice. Here are the criteria that I had in mind (feel free to add your own, of course): 1) Easy to integrate; preferably contained in a single file 2) Doesn't require that the file system be writable by the web server's user (typically necessary for caching, so caching should at least be disable-able) 3) supports some basic "if" and loop constructs, but should not be overly complex. I have already semi-ruled out Smarty, because I think the complexity, while powerful, is overkill. I could be convinced otherwise, though. 8) I tried doing some work with the PHPLIB template class. I think that the lack of proper "if" constructs made it tedious to try and integrate into the app as-is. I also have a very simple homegrown template system that just uses standard PHP for logic. That would avoid having to learn a new syntax for the templates, but it might also tempt people to do more complex stuff than they should in the templates. Thoughts? -- "it's like an addiction to idiocy" -j -Ed |