You are here

public function _HamlTextileFilter::run in Sassy 7

* Run the filter *

Parameters

string text to filter: * @return string filtered text

Overrides HamlBaseFilter::run

File

phamlp/haml/filters/_HamlTextileFilter.php, line 47

Class

_HamlTextileFilter
Textile Filter for {@link http://haml-lang.com/ Haml} class. Parses the text with Textile.

Code

public function run($text) {
  return '<?php	' . (!empty($this->vendorPath) ? 'require_once "' . $this->vendorPath . '";' : '') . '$textile___=new ' . $this->vendorClass . '();echo  $textile___->TextileThis("' . preg_replace(HamlParser::MATCH_INTERPOLATION, '".\\1."', $text) . '");?>';
}