2017 © Pedro Peláez
 

library jadebundle

Package wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle

image

sielay/jadebundle

Package wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle

  • Saturday, July 26, 2014
  • by sielay
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Provides Jade.php templates support for your Symfony2 project. See Jade.php site & repository for more info., (*1)

Features

  • high performance parser
  • great readability
  • contextual error reporting at compile & run time
  • combine dynamic and static tag classes
  • no tag prefix
  • clear & beautiful HTML output
  • filters
    • :php
    • :cdata
    • :css
    • :javascript
  • TextMate Bundle
  • VIM Plugin

Installation

Add bundle to your composer

// composer.json
{
  ...
  "sielay/jadebundle" : "dev-master"

}

Update your composer

//
composer update

Add EverzetJadeBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Bundle\Everzet\JadeBundle\EverzetJadeBundle(),
        // ...
    );
}

Turn on jade bundle in application config

# app/config/config.yml
jade.config: ~

Write templates

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));

CREDITS

List of developers who contributed:, (*4)

  • Konstantin Kudryashov (ever.zet@gmail.com)
  • Lukasz Marek Sielski (lukaszsielski@gmail.com)

The Versions

26/07 2014

dev-master

9999999-dev

Package wrapping EverzetJadeBundle from relo-san/EverzetJadeBundle

  Sources   Download

MIT

The Requires

 

by Lukasz Sielski

template bundle symfony jade jade.php