class Parade::JSTemplateGenerator

Inline the specified javascript

Public Instance Methods

content() click to toggle source
# File lib/parade/helpers/template_generator.rb, line 120
def content
  content_filepath = File.exists?(filepath) ? filepath : File.join(File.dirname(__FILE__), "..", "..", "public", "js", filepath)
  File.read content_filepath
end
erb_template_file() click to toggle source
# File lib/parade/helpers/template_generator.rb, line 125
def erb_template_file
  File.join File.dirname(__FILE__), "..", "..", "views", "inline_js.erb"
end