Rain TPL 3 - Alpha

152 views
Skip to first unread message

Rain

unread,
Dec 27, 2011, 10:54:05 PM12/27/11
to raintpl
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

Marco Audisio

unread,
Dec 28, 2011, 4:06:20 AM12/28/11
to rai...@googlegroups.com
Fantastic!

Marco Audisio



------- Messaggio originale -------
Da: Rain <rainel...@gmail.com>
Reply-to: rai...@googlegroups.com
A: raintpl <rai...@googlegroups.com>
Oggetto: Rain TPL 3 - Alpha
Data: Tue, 27 Dec 2011 19:54:05 -0800 (PST)
Reply all
Reply to author
Forward
0 new messages