dev-master
9999999-devPackage wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle
MIT
The Requires
- php >=5.3.0
- pagon/jade *
by Lukasz Sielski
template bundle symfony jade jade.php
Package wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle
Provides Jade.php templates support for your Symfony2 project. See Jade.php site & repository for more info., (*1)
// composer.json { ... "sielay/jadebundle" : "dev-master" }
// composer update
// app/AppKernel.php public function registerBundles() { return array( // ... new Bundle\Everzet\JadeBundle\EverzetJadeBundle(), // ... ); }
# app/config/config.yml jade.config: ~
Write jade templates as you do with php, but suffix them with .jade
extension:, (*2)
# Application/HelloBundle/Resources/views/Hello/index.jade - $view->extend('HelloBundle::layout.jade') h2 | Hello {{ $name }}!!! # Application/HelloBundle/Resources/views/layout.jade !!! strict html head meta( http-equiv:"Content-Type", content="text/html; charset=utf-8" ) title - $view['slots']->output('title', 'Hello Application') body h1 Hello Application - $view['slots']->output('_content')
Then you could render them like this:, (*3)
return $this->render('HelloBundle:Hello:index.jade', array('name' => $name));
List of developers who contributed:, (*4)
Package wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle
MIT
template bundle symfony jade jade.php