Sha256: 9a295ad2df87b06547ad93e1cd3eff7e693b88d0686e7faa63a183c192023fd9

Contents?: true

Size: 209 Bytes

Versions: 6

Compression:

Stored size: 209 Bytes

Contents

module AutoHtml
  def self.add_filter(name, &block)
    AutoHtml::Builder.add_filter(name, &block)
  end

  def auto_html(raw, &proc)
    builder = Builder.new(raw)
    builder.instance_eval(&proc)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dejan-auto_html-1.1.0 lib/auto_html/base.rb
dejan-auto_html-1.1.1 lib/auto_html/base.rb
dejan-auto_html-1.1.2 lib/auto_html/base.rb
dejan-auto_html-1.2.0 lib/auto_html/base.rb
auto_html-1.2.1 lib/auto_html/base.rb
auto_html-1.2.0 lib/auto_html/base.rb