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, attrs) ⇒ 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
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 (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 |