2017 © Pedro Peláez
 

cakephp-plugin cake-haml

haml template engine for cakephp3

image

kamur/cake-haml

haml template engine for cakephp3

  • Wednesday, June 13, 2018
  • by kamur
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CakeHaml

License, (*1)

CakeHaml is haml template engine for cakephp3. Using parser of MtHaml., (*2)

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:, (*3)

"require": {
    "kamur/cake-haml": "dev-master"
}

And run php composer.phar update, (*4)

Setup

Add plugin load line to config/bootstrap.php file:, (*5)

+ Plugin::load('CakeHaml', ['bootstrap' => true]);

Set the default ViewClass on the src/Controller/AppController.php file:, (*6)

  class AppController extends Controller {

+     public $viewClass = 'CakeHaml\\View\\CakeHamlView';
+     public function beforeFilter(Event $event){
+       parent::beforeFilter($event);
+       if($this->request->is('ajax')){
+         $this->setRequest($this->request->withParam('_ext', $this->viewClass));
+       }
+     }

You can use haml on all your view files with .haml extension., (*7)

The Versions

13/06 2018

dev-master

9999999-dev https://github.com/kamur/CakeHaml

haml template engine for cakephp3

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar k-motoyan

template cakephp haml