phphaml icon indicating copy to clipboard operation
phphaml copied to clipboard

Filters

Open derDoc opened this issue 13 years ago • 0 comments

Filter handling is broken, due to the subclassing of HamlLine to HamlParser. HamlLine does not implement the method getAsSource(). Changing line 1284 to read

$oHaml = new HamlParser($this->sPath, $this->bCompile, $parent, array('line'=>$iLine, 'file'=>$this->sFile));

however fixes this. Furthermore, since SassParser implements sass() as a static method the callable must be passed to registerBlock in line 217 as follows:

self::registerBlock(__NAMESPACE__ .'\SassParser::sass', 'sass');

The array(instance, method) only works for non-static methods. I will submit patches for this (or a pull request) soon.

derDoc avatar Feb 08 '13 13:02 derDoc