Class: Slim::Filter Private

Inherits:
Temple::HTML::Filter
  • Object
show all
Defined in:
lib/slim/filter.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Base class for Temple filters used in Slim

This base filter passes everything through and allows to override only some methods without affecting the rest of the expression.

Instance Method Summary collapse

Instance Method Details

#on_slim_control(code, content) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Pass-through handler


21
22
23
# File 'lib/slim/filter.rb', line 21

def on_slim_control(code, content)
  [:slim, :control, code, compile(content)]
end

#on_slim_embedded(type, content, attrs) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Pass-through handler


16
17
18
# File 'lib/slim/filter.rb', line 16

def on_slim_embedded(type, content, attrs)
  [:slim, :embedded, type, compile(content), attrs]
end

#on_slim_output(escape, code, content) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Pass-through handler


26
27
28
# File 'lib/slim/filter.rb', line 26

def on_slim_output(escape, code, content)
  [:slim, :output, escape, code, compile(content)]
end

#on_slim_text(type, content) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Pass-through handler


11
12
13
# File 'lib/slim/filter.rb', line 11

def on_slim_text(type, content)
  [:slim, :text, type, compile(content)]
end