Skip to content

delfit/yii-haml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

HAML View Renderer for Yii Framework

yii-haml is extension for Yii Framework 1.1.x that brings HAML power to your views. Based on forks of phamlp project.

Installation with Composer

  • Add this to your composer.json :
"repositories": [
  {
    "type":"composer",
    "url": "http://packages.phundament.com"
    },
    {
      "type": "package",
      "package": {
        "name": "delfit/phamlp",
        "version": "dev-master",
        "source": {
          "type": "git",
          "url": "https://github.com/delfit/phamlp",
          "reference": "master"
        }
      }
    }
],
"require": {
  "delfit/phamlp": "*",
  "delfit/yii-haml": "*"
}
  • Run composer update for your project

Usage

  • Add component to your config/main.php :
return array(
	'components' => array(
		'viewRenderer' => array(
			'class' => 'application.vendor.delfit.yii-haml.HamlViewRenderer',
		),
	),
);
  • Write your views in HAML and name them with *.haml extension

Documentation

As far as yii-haml is just a Composer-powered wrapper around phamlp, you should read this docs :

Tools

There is a plugin for PHP HAML syntax for Sublime Text 2 : sublimetext-php-haml

About

HAML View Renderer for Yii Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages