You are here

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

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

Namesort descending Modifiers Type Description Overrides
HamlBaseFilter::init public function * Initialise the filter. 2
HamlPlainFilter::run public function * Run the filter * Overrides HamlBaseFilter::run