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



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

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



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

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



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

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



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

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