module Themify
Constants
- VERSION
Attributes
templates[RW]
Public Class Methods
add_template(template)
click to toggle source
Adds a template to an internal list of templates Argument must be an instance of Themify::Template
# File lib/themify.rb, line 14 def self.add_template(template) raise 'Template should be an instance of Themify::Template' unless template.instance_of?(Themify::Template) self.templates ||= [] self.templates << template end
generate_js()
click to toggle source
# File lib/themify.rb, line 20 def self.generate_js 'window.Themify = {}; window.Themify.templates = ' + templates.to_json end