CakeHaml is haml template engine for cakephp3.
Using parser of MtHaml.
You can install this plugin into your CakePHP application using
composer. For existing applications you can add the
following to your composer.json
file:
"require": {
"k-motoyan/cake-haml": "dev-master"
}
And run php composer.phar update
Add plugin load line to config/bootstrap.php
file:
+ Plugin::load('CakeHaml', ['bootstrap' => true]);
Set the default ViewClass on the src/Controller/AppController.php
file:
class AppController extends Controller {
+ public $viewClass = 'CakeHaml\\View\\CakeHamlView';
You can use haml on all your view files with .haml
extension.