Sha256: 6deeef7c89af8fde1227025b495f162f75469c2bd39ccaec8a0bccd2e860f478

Contents?: true

Size: 414 Bytes

Versions: 12

Compression:

Stored size: 414 Bytes

Contents

module ApplicationHelper
    module Amp::PlaceholderTagHelper

        def amp_placeholder(name, options = {}, &block)
            options = options.symbolize_keys
            options[:placeholder] = ""

            if block_given?
                content_tag(name, capture(&block), options)
            else
                content_tag(name, nil, options)
            end
        end

    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
amp-html-0.7.18 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.17 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.16 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.15 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.14 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.13 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.12 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.11 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.10 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.9 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.8 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb
amp-html-0.7.7 lib/generators/templates/helpers/amp/placeholder_tag_helper.rb