You are here

public function HamlRenderer::renderOpeningTag in Sassy 7

* Renders the opening tag of an element

4 calls to HamlRenderer::renderOpeningTag()
HamlCompactRenderer::renderOpeningTag in phamlp/haml/renderers/HamlCompactRenderer.php
* Renders the opening tag of an element
HamlCompressedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlCompressedRenderer.php
* Renders the opening tag of an element
HamlExpandedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlExpandedRenderer.php
* Renders the opening tag of an element
HamlNestedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlNestedRenderer.php
* Renders the opening tag of an element
4 methods override HamlRenderer::renderOpeningTag()
HamlCompactRenderer::renderOpeningTag in phamlp/haml/renderers/HamlCompactRenderer.php
* Renders the opening tag of an element
HamlCompressedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlCompressedRenderer.php
* Renders the opening tag of an element
HamlExpandedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlExpandedRenderer.php
* Renders the opening tag of an element
HamlNestedRenderer::renderOpeningTag in phamlp/haml/renderers/HamlNestedRenderer.php
* Renders the opening tag of an element

File

phamlp/haml/renderers/HamlRenderer.php, line 102

Class

HamlRenderer
HamlRenderer class. Provides the most common version of each method. Child classs override methods to provide style specific rendering. @package PHamlP @subpackage Haml.renderers

Code

public function renderOpeningTag($node) {
  $output = "<{$node->content}";
  $output .= $this
    ->renderAttributes($node->attributes);
  $output .= ($node->isSelfClosing ? ' /' : '') . '>';
  return $output;
}