Class: Slim::Filter Private
- Inherits:
-
Temple::HTML::Filter
- Object
- Temple::HTML::Filter
- Slim::Filter
- 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.
Direct Known Subclasses
CodeAttributes, Controls, DoInserter, Embedded, Embedded::Engine, EndInserter, Include, Interpolation, LogicLess, NewlineCollector, OutputProtector, Smart::Escaper, Smart::Filter, Splat::Filter, TextCollector, Translator, Translator::DynamicTranslator, Translator::StaticTranslator
Instance Method Summary collapse
-
#on_slim_control(code, content) ⇒ Object
private
Pass-through handler.
-
#on_slim_embedded(type, content) ⇒ Object
private
Pass-through handler.
-
#on_slim_output(escape, code, content) ⇒ Object
private
Pass-through handler.
-
#on_slim_text(type, content) ⇒ Object
private
Pass-through handler.
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) ⇒ 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 (type, content) [:slim, :embedded, type, compile(content)] 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 |