Sha256: b5b5f52f613bbef3acad6d7cec3c4edbbe97688a7c9fed71b66a2f2819d07e48

Contents?: true

Size: 435 Bytes

Versions: 17

Compression:

Stored size: 435 Bytes

Contents

module ApplicationHelper
    module Amp::Components::ServiceworkerTagHelper

        def amp_serviceworker(register_url, install_url, options = {})
            options = options.symbolize_keys

            options[:src] = register_url
            options[:"data-iframe-src"] = install_url
            options[:layout] = "nodisplay"

            content_tag("amp-install-serviceworker", options)
        end

    end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
amp-html-1.2.1 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-1.2.0 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-1.1.0 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-1.0.1 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-1.0.0 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.18 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.17 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.16 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.15 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.14 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.13 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.12 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.11 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.10 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.9 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.8 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb
amp-html-0.7.7 lib/generators/templates/components/helpers/serviceworker_tag_helper.rb