Hello everyone! I'm new to this forum, I found it when searching for a place specifically to get feedback on a project of mine. This is "Muted Template" which is yet another templating language built over top of PHP which is itself a templating language. Some extra stuff is included because this is going to serve as the basis for a CMS I am developing.
The language itself is built with extensibility and full Utf-8 support at its core. This means that basic language constructs such as if, for, set and more are actually "plug-ins" and you can develop any other fundamental language tags provided you register them with the engine with MutedTemplate->createTag($TagName, $ClassName) and the class defines its own parsing rules appropriately. The only thing which is built-in to the template parsing class is variable output tags such as {$value[index]}.
The size of the project may seem daunting, however, there is a unit test folder where you can view a number of examples and there is a brief comment on how to use each tag in the Code/Parse/Tags folder. If you're feeling adventurous you can even try your hand at making a new tag. The best way to approach this would probably be to find a tag that does something similar to what you want and copy/modify that.
I have a demo here where you can take the language for a spin:
http://www.michaelhamilton.com/MutedTemplate/demo.php
The PHP source code is here:
http://www.michaelhamilton.com/Files/MutedTemplate.zip
If you would like to use this in your own projects please let me know via e-mail maxmike@gmail.com, mostly I just like knowing that people find it useful. If you make new tags which may be useful, again, let me know and I may include them in the core distribution!
But more importantly this project is in its infancy and I am looking for comments on both the PHP code running the project and also the language I have designed.
This project is PHP 4 and PHP 5 compatible.
I have posted this in another PHP developer forum for critique as well, I encourage you to skim it for my comments (though much of the discussion seems to be pretty off-topic, my posts include examples, descriptions and more. Part of the reason I post it here as well is due to the large volume of off-topic discussion.)
http://forums.devnetwork.net/viewtopic.php?f=50&t=113476&start=0
Thanks for your time and comments!