Class: Hamli::Filters::Base

Inherits:
Temple::HTML::Filter
  • Object
show all
Defined in:
lib/hamli/filters/base.rb

Overview

Pass-through some expressions which are unknown for Temple.

Direct Known Subclasses

Interpolation

Instance Method Summary collapse

Instance Method Details

#on_hamli_position(begin_, end_, expression) ⇒ Array

Parameters:

  • begin_ (Integer)
  • end_ (Integer)
  • expression (Array)

Returns:

  • (Array)


13
14
15
# File 'lib/hamli/filters/base.rb', line 13

def on_hamli_position(begin_, end_, expression)
  [:hamli, :position, begin_, end_, compile(expression)]
end

#on_hamli_text(expression) ⇒ Array

Parameters:

  • expression (Array)

Returns:

  • (Array)


19
20
21
# File 'lib/hamli/filters/base.rb', line 19

def on_hamli_text(expression)
  [:hamli, :text, compile(expression)]
end