library silex-mthaml
HAML templating for Silex
mthaml/silex-mthaml
HAML templating for Silex
- Tuesday, December 13, 2016
- by arnaud-lb
- Repository
- 3 Watchers
- 8 Stars
- 651 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 3 Versions
- 0 % Grown
Silex-MtHaml
HAML templating for Silex using the MtHaml PHP HAML parser., (*1)
Features
-
Acts as a Twig preprocessor: Supports Twig functions, filters, macros, blocks, inheritance, expressions and every Twig features
-
Mix Twig and HAML templates: You can include, extend, use and import Twig templates from HAML templates, and vice versa.
-
High performance: Templates are compiled to PHP code and cached, no parsing or runtime overhead.
-
HAML syntax supported by editors
Installation
Install using composer:, (*2)
$ composer require mthaml/silex-mthaml:*
Then register the service provider:, (*3)
``` php
<?php, (*4)
// after $app->register(new Silex\Provider\TwigServiceProvider() [...]
$app->register(new SilexMtHaml\MtHamlServiceProvider());
```, (*5)
Usage
Name your template with a .haml
suffix, and call render
as usual., (*6)
Syntax
See MtHaml docs, (*7)
dev-master
9999999-dev
HAML templating for Silex
Sources
Download
MIT
The Requires
by
Arnaud Le Blanc
1.0.1
1.0.1.0
HAML templating for Silex
Sources
Download
MIT
The Requires
by
Arnaud Le Blanc
1.0
1.0.0.0
HAML templating for Silex
Sources
Download
MIT
The Requires
by
Arnaud Le Blanc