class Roll::Amp::Style::BoilerplateStyleTagsSet

The boilerplate style tags set. There are two boilerplate styles: the main style and the additional style which disables animations and is put into <noscript> tag. This class represents all that structure.

Public Instance Methods

to_html() click to toggle source

Builds HTML set of style tags. @return [String] safe HTML string, containing the boilerplate style structure.

# File lib/roll/amp/style/boilerplate_style_tags_set.rb, line 16
def to_html
  content = BoilerplateStyleTag.new('boilerplate-main.css').to_html
  content << NoScriptTag.new(
    BoilerplateStyleTag.new('boilerplate-animation.css').to_html
  ).to_html
  raw(content)
end