You are here

protected function HamlParser::interpolate in Sassy 7

* Replace interpolated PHP contained in '#{}'. *

Parameters

string the text to interpolate: * @return string the interpolated text

3 calls to HamlParser::interpolate()
HamlParser::parseAttributeHash in phamlp/haml/HamlParser.php
* Parse attributes. *
HamlParser::parseAttributes in phamlp/haml/HamlParser.php
* Parse attributes. *
HamlParser::parseContent in phamlp/haml/HamlParser.php
* Parse content *

File

phamlp/haml/HamlParser.php, line 1262

Class

HamlParser
HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml

Code

protected function interpolate($string, $type = '') {
  return preg_replace(self::MATCH_INTERPOLATION, in_array($type, $this->minimizedAttributes) ? '\\1' : self::INTERPOLATE, $string);
}