Sha256: c9c2a75bbb0baaba124619ff6bdfa775db0f57bb73724778efeedf1681f52f5e
Contents?: true
Size: 799 Bytes
Versions: 9
Compression:
Stored size: 799 Bytes
Contents
module Slim # 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 class Filter < Temple::HTML::Filter # Pass-through handler def on_slim_embedded(type, content) [:slim, :embedded, code, compile(content)] end # Pass-through handler def on_slim_control(code, content) [:slim, :control, code, compile(content)] end # Pass-through handler def on_slim_condcomment(condition, content) [:slim, :condcomment, condition, compile(content)] end # Pass-through handler def on_slim_output(code, escape, content) [:slim, :output, code, escape, compile(content)] end end end
Version data entries
9 entries across 9 versions & 1 rubygems