You are here

private function Haml::_init in Sassy 7

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

1 call to Haml::_init()
Haml::generateViewFile in phamlp/Yii/phamlp/Haml.php
* Parses the source view file and saves the results as another file. * This method is required by the parent class. *

File

phamlp/Yii/phamlp/Haml.php, line 163

Class

Haml
HamlViewRenderer allows you to write view files in {@link Haml http://haml-lang.com/}. @package PHamlP @subpackage Yii

Code

private function _init() {
  if (isset($this->filterPathAlias)) {
    $this->filterDir = Yii::getPathOfAlias($this->filterPathAlias);
  }
  if (isset($this->helperFile)) {
    $this->helperFile = Yii::getPathOfAlias($this->helperFile) . '.php';
  }
  $options = array();
  foreach ($this->hamlOptions as $option) {
    if (isset($this->{$option})) {
      $options[$option] = $this->{$option};
    }
  }

  // foreach
  Yii::import('ext.phamlp.vendors.phamlp.haml.HamlParser');
  $this->haml = new HamlParser($options);
}