non php templating system ?
|
21 posts
|
wow ! what a nice relooking for the forum ! The future use of a special markup (r:next…) based on XML tags shows the necessity of a basic non-PHP markup system in Frog. While using TinyMCE plugin stave off PHP use in pages, because of the plugin attempts to translate PHP code in HTML markup, doesn’t it ? A temmplating system based on XML already exists : it’s called TAL and there an PHP engine for it (PHPTAL), my question is : could it be integrated easily in frog for example including snippets with :
or in templates
for example. This will be useful, and avoid lack of compatibility with TinyMCE, I hope. Anyone have an opinion ? |
|
651 posts
|
The whole point of Frog is that you can use PHP in the pages. Frog is not “incompatible” with TinyMCE by the way. The latest TinyMCE plugin supports Frog’s filter system, so if you need PHP on a page, simple select the “none” filter. I would personally not be in favor of adding a templating system any time soon. |
|
109 posts
|
I agree with mvdkleijn since templates have to get parsed and this would mean loosing some performance. If you are making a website for a client and don’t want them to see PHP code, put all the code inside of snippets and include them in the layouts. I will post some tutorials on how i did this very soon. |