class Rapper::HtmlTags::JsTag

JavaScript tag.

Public Class Methods

templates() click to toggle source
# File lib/rapper/html_tags.rb, line 135
def templates
  {
    :html => '<script type="text/javascript" src="<%= path %>"></script>',
    :html5 => "<script src=\"<%= path %>\"></script>",
    :xhtml => '<script type="text/javascript" src="<%= path %>"></script>'
  }
end