Sha256: 75b0422bace146ca17114a02b306f93ceb4b010a6108f364cf70dbe5734b47ea

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

module ApplicationHelper
    module Amp::StylesheetsTagHelper

        def amp_css &block
            if block_given?
                content_for :css, capture(&block)
            end
        end

        # def amp_css_link(href)
        # end

        def amp_global_css &block
            warn 'AMP-HTML WARNING: `amp_global_css` is deprecated and will be removed in amp-html 2.0 - use `amp_css` instead'
            if block_given?
                content_for :global_css, capture(&block)
            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/stylesheets_tag_helper.rb
amp-html-0.7.17 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.16 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.15 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.14 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.13 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.12 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.11 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.10 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.9 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.8 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb
amp-html-0.7.7 lib/generators/templates/helpers/amp/stylesheets_tag_helper.rb