You are here

public static function HamlHelpers::surround in Sassy 7

* Surrounds a block of Haml code with strings. * If $back is not given it defaults to $front. *

Parameters

string Haml block: * @param string string to prepend * @param string string to apppend * @return string the block surrounded by the strings

File

phamlp/haml/HamlHelpers.php, line 196

Class

HamlHelpers
HamlHelpers class. Contains methods to make it easier to do various tasks.

Code

public static function surround($block, $front, $back = null) {
  return $front . $block . (is_null($back) ? $front : $back);
}