You are here

protected function HamlNode::showSource in Sassy 7

* Adds a comment with source debug information for the current line to the output. * The debug information is: * + source file (relative to the application path) * + line number * + indent level * + source code *

Parameters

array source line(s) that generated the ouput:

1 call to HamlNode::showSource()
HamlNode::debug in phamlp/haml/tree/HamlNode.php

File

phamlp/haml/tree/HamlNode.php, line 250

Class

HamlNode
HamlNode class. Base class for all Haml nodes. @package PHamlP @subpackage Haml.tree

Code

protected function showSource($output) {
  return "<!--\n  ({$this->line['file']} {$this->line['number']}:{$this->line['indentLevel']})\n  {$this->line[HamlParser::HAML_SOURCE]}\n-->\n{$output}";
}