Sha256: 354d8a08e57f405d4f59fc58aaee6cf27de16d7cfa9f658dfa43cc93e602155f

Contents?: true

Size: 236 Bytes

Versions: 10

Compression:

Stored size: 236 Bytes

Contents

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

  def auto_html(raw, &proc)
    return "" if raw.blank?
    builder = Builder.new(raw)
    builder.instance_eval(&proc)
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
auto_html-1.3.7 lib/auto_html/base.rb
marcosinger-auto_html-1.3.5 lib/auto_html/base.rb
marcosinger-auto_html-1.3.4 lib/auto_html/base.rb
auto_html-1.3.6 lib/auto_html/base.rb
auto_html-1.3.5 lib/auto_html/base.rb
auto_html-1.3.4 lib/auto_html/base.rb
auto_html-1.3.3 lib/auto_html/base.rb
auto_html-1.3.2 lib/auto_html/base.rb
auto_html-1.3.1 lib/auto_html/base.rb
auto_html-1.3.0 lib/auto_html/base.rb