Page 1 of 1

Template Design for Dynamic Applications

Posted: Fri Sep 05, 2003 2:41 pm
by NoReason
The topic says it all .. I have been trying to think of a way to design an engine that would allow for dynamic input/output.

As it is right now, most of my code is done at the top of the page, stored in a variable then dropped into main page via <=? $variable ?>.

Now it works works just fine... However it does tend to get a little cluttered. Some of my biggest problems stem from the needing to control what people have access to, and what people see.. All can be taken care of by a simple if statement for each element (granular security).

What are you thoughts on this?? All of the template engines I have seen do NOT deal with extensive dynamic content very well, not at all, or make it more cumbersome.

Re: Template Design for Dynamic Applications

Posted: Sat Aug 29, 2009 9:45 am
by alex.barylski
What are you thoughts on this?? All of the template engines I have seen do NOT deal with extensive dynamic content very well, not at all, or make it more cumbersome.
Most professional developers eventually end up using PHP alternative syntax and PHP itself as a template engine.

Google bTemplate it's a very simple template engine...fast and as flexible as your going to get

Re: Template Design for Dynamic Applications

Posted: Sat Aug 29, 2009 3:07 pm
by josh
MVC

Re: Template Design for Dynamic Applications

Posted: Sat Aug 29, 2009 6:42 pm
by Christopher
I am not clear what "dynamic input/output" is? It sounds like the problem is using Access Control to control what content is generated. That sounds like RBAC style control is needed ... maybe controlling access to partials.