Sha256: e3b20974c4f3f17759c3af0e3f7bfa2545891d697d12b7a688a538b7f0fa80a3

Contents?: true

Size: 775 Bytes

Versions: 39

Compression:

Stored size: 775 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_text(type, content)
      [:slim, :text, type, compile(content)]
    end

    # Pass-through handler
    def on_slim_embedded(type, content)
      [:slim, :embedded, type, compile(content)]
    end

    # Pass-through handler
    def on_slim_control(code, content)
      [:slim, :control, code, compile(content)]
    end

    # Pass-through handler
    def on_slim_output(escape, code, content)
      [:slim, :output, escape, code, compile(content)]
    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
slim-4.0.0 lib/slim/filter.rb
brakeman-4.3.1 bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.3.0 bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.2.1 bundle/ruby/2.5.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.2.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.1.1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.1.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
slim-3.0.9 lib/slim/filter.rb
brakeman-4.0.1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.0.1.pre1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-4.0.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.7.2 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.7.1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.7.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.6.2 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
slim-3.0.8 lib/slim/filter.rb
brakeman-3.6.1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.6.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.5.0 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb
brakeman-3.4.1 bundle/ruby/2.3.0/gems/slim-3.0.7/lib/slim/filter.rb