Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

delphaber/yii-jade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii-jade

Yii's extension for Jade template system

Instructions

  • Code must be in this folder 'protected/extensions/yii-jade/'

  • Since I'm using git submodules, you need to init them:

    cd protected/extensions/yii-jade
    git submodule init
    git submodule update
  • Add this to your 'config/main.php' file:

    'components'=>array(
        ...
        'viewRenderer'=>array(
            'class' => 'ext.yii-jade.CJadeViewRenderer',
        ),
        ...
  • You may want to add the following line, so the compiled templates will have passed data to a template in the main var list

             'prepend' => array('<?php extract((array)$data); ?>'),
  • Jade templates must have '.jade' extension

About

Yii extension for Jade template system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages