Class: Filter

Inherits: Node
Defined in: src/nodes/filter.coffee

Overview

Filter node for built-in Haml filters:

Only the top level filter marker is a filter node, containing child nodes are text nodes.

Constant Summary

Constants inherited from Node

CLEAR_WHITESPACE_LEFT, CLEAR_WHITESPACE_RIGHT

Instance Method Summary

Methods inherited from Node

#constructor, #addChild, #getOpener, #getCloser, #isPreserved, #markText, #markRunningCode, #markInsertingCode, #evaluate, #render

Instance Method Details

- (void) evaluate()

Evaluate the Haml filters

- (void) render()

Render the filter

- (void) renderFilterContent(indent, output, type = 'text')

Render the child content, but omits empty lines at the end

Parameters:

  • output (Array) where to append the content
  • indent (Number) the content indention