public function HamlPlainFilter::run in Sassy 7
* Run the filter *
Parameters
string text to filter: * @return string filtered text
Overrides HamlBaseFilter::run
File
- phamlp/
haml/ filters/ HamlPlainFilter.php, line 25
Class
- HamlPlainFilter
- 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
Code
public function run($text) {
return preg_replace(HamlParser::MATCH_INTERPOLATION, '<?php echo \\1; ?>', $text) . "\n";
}