class HamlPlainFilter in Sassy 7
Plain Filter for {@link http://haml-lang.com/ Haml} class. Does not parse the filtered text. This is useful for large blocks of text without HTML tags when lines are not to be parsed. @package PHamlP @subpackage Haml.filters
Hierarchy
- class \HamlBaseFilter
- class \HamlPlainFilter
Expanded class hierarchy of HamlPlainFilter
File
- phamlp/
haml/ filters/ HamlPlainFilter.php, line 19
View source
class HamlPlainFilter extends HamlBaseFilter {
/**
* Run the filter
* @param string text to filter
* @return string filtered text
*/
public function run($text) {
return preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \\1; ?>', $text) . "\n";
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HamlBaseFilter:: |
public | function | * Initialise the filter. | 2 |
HamlPlainFilter:: |
public | function |
* Run the filter
* Overrides HamlBaseFilter:: |