Interesting have always wanted to try out HAML when i did rails development, will definately look into this :)
On Nov 6, 11:41 pm, Konstantin Kudryashov <[email protected]> wrote: > Hey, guys. > > We are already have basic PHP templating abilities & great Twig engine. But > Symfony2 is missing some fast to start YAML-like templates, that RoR & > node.js guys have (HAML, Jade)... Till now ;-) > > On friday i've released jade.php <http://everzet.com/jade.php/>. > It's HAML-inspired template translator. It's not templating engine, it just > translates jade templates into native php code. > > That jade.php template: > > #content > .left.column > h2 Welcome to our site! > p= printTitle() > .right.column > = date('d.m.Y') > > Will be translated into this plain-PHP template: > > <div id='content'> > <div class='left column'> > <h2>Welcome to our site!</h2> > <p><?php echo printTitle() ?></p> > </div> > <div class="right column"> > <?php echo date('d.m.Y') ?> > </div> > </div> > > Because of it's translator-specific mechanics, jade.php is as fast as > plain-PHP templates, minus first time template translation. And it's much > more readable than plain-PHP templates & very great on first project > mockups. > > jade.php has official > JadeBundle<http://symfony2bundles.org/everzet/EverzetJadeBundle>, > that already has proper cache & templating integration with Symfony2. > > With regard, > Konstantin Kudryashov. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
