You are here

private function HamlView::_init in Sassy 7

* Do a sanity check on the options and setup alias to filters

1 call to HamlView::_init()
HamlView::_render in phamlp/Cake/views/haml.php
* Renders and returns output for given view filename with its * array of data. * *

File

phamlp/Cake/views/haml.php, line 152

Class

HamlView
Haml allows you to write view files in {@link Haml http://haml-lang.com/} and render them using {@link http://phamlp.googlecode.com PHamlP}.

Code

private function _init() {
  $options = array();
  foreach ($this->hamlOptions as $option) {
    $_option = Configure::read("Haml.{$option}");
    if (!is_null($_option)) {
      $options[$option] = $_option;
    }
  }

  // foreach
  App::import('Vendor', 'HamlParser', array(
    'file' => 'phamlp' . DS . 'haml' . DS . 'HamlParser.php',
  ));
  $this->haml = new HamlParser($options);
}