Class: Roll::Amp::Script::AmpJsTag

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::OutputSafetyHelper
Defined in:
lib/roll/amp/script/amp_js_tag.rb

Overview

The script tag with AMP utilities.

Instance Method Summary collapse

Instance Method Details

#to_htmlString

Prints this tag as HTML.

Returns:

  • (String)

    HTML-safe string containing the tag’s HTML view.



12
13
14
# File 'lib/roll/amp/script/amp_js_tag.rb', line 12

def to_html
  raw('<script async src="https://cdn.ampproject.org/v0.js"></script>')
end