k-motoyan / cake-haml
haml template engine for cakephp3
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
Type:cakephp-plugin
pkg:composer/k-motoyan/cake-haml
Requires
- cakephp/cakephp: 3.0.*-dev
- cakephp/plugin-installer: *
- mthaml/mthaml: ~1.6.0
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-11-04 08:57:49 UTC
README
CakeHaml is haml template engine for cakephp3.
Using parser of MtHaml.
Installation
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
Setup
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.