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.
Template Design for Dynamic Applications
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Template Design for Dynamic Applications
Most professional developers eventually end up using PHP alternative syntax and PHP itself as a template engine.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.
Google bTemplate it's a very simple template engine...fast and as flexible as your going to get
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Template Design for Dynamic Applications
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.
(#10850)