Class: Roll::Amp::Style::BoilerplateStyleTag

Inherits:
StyleTag
  • Object
show all
Defined in:
lib/roll/amp/style/boilerplate_style_tag.rb

Overview

The boilerplate style tag. Provides base CSS for AMP pages.

Instance Method Summary collapse

Methods inherited from StyleTag

#to_html

Constructor Details

#initialize(css_file_name) ⇒ BoilerplateStyleTag

Initializes new instance of the boilerplate style tag. boilerplate CSS content from.

Parameters:

  • css_file_name (String)

    the file name of the CSS file to take



9
10
11
12
13
14
# File 'lib/roll/amp/style/boilerplate_style_tag.rb', line 9

def initialize(css_file_name)
  super(
    'amp-boilerplate',
    InternalCssFile.new(css_file_name).read
  )
end