class Slim::Filter

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.

@api private

Public Instance Methods

on_slim_control(code, content) click to toggle source

Pass-through handler

# File lib/slim/filter.rb, line 21
def on_slim_control(code, content)
  [:slim, :control, code, compile(content)]
end
on_slim_embedded(type, content) click to toggle source

Pass-through handler

# File lib/slim/filter.rb, line 16
def on_slim_embedded(type, content)
  [:slim, :embedded, type, compile(content)]
end
on_slim_output(escape, code, content) click to toggle source

Pass-through handler

# 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) click to toggle source

Pass-through handler

# File lib/slim/filter.rb, line 11
def on_slim_text(type, content)
  [:slim, :text, type, compile(content)]
end