I'm happy to announce that RainTpl 3 Alpha is on github:
https://github.com/rainphp/raintpl3
Easy, light and fast as ever, RainTPL 3 Alpha is back-compatible with
RainTPL 2, the list of the new features is interesting, but also more
interesting is the wish list!
Here is the new features:
- Better parser in less code
- Cascade modifier, {$title|strtolower|ucfirst}
- Register Tag, to create custom tags that call closure functions,
example: {@translate this text@}
- Loop tag improved: {loop="list" as $i => $array} ... {/loop} and
{loop="range(0,3)" as $i }
- Modifier can be called into if tag {if="$title|streln > 10"} ... {/
if}
- Added Clean method to delete old cache files
- Added autoescape
- Removed Sandbox and Static Cache
And here is the wish list:
- Compatible with Twig and other template engine, as simple as write
raintpl::configure( "syntax", "twig" );
- Short syntax: {loop $var} {if $var}
- Template auto generation, from default template (to make easier the
process of creating the template)
- Better Sandbox
- Better Error management
- Namespace? May be.
- Javascript integration with Ajax/JSON
- More examples, with new cool tools as Less CSS and Twitter Bootstrap
I'm positive this is a good news for all of you, so thanks in advance
for all the comments, suggestions and, the very welcome feedback from
you!
Happy Holidays,
Federico
Rain Team