lib/jstgenerator/engine.rb in jstgenerator-0.1.0 vs lib/jstgenerator/engine.rb in jstgenerator-0.1.1

- old
+ new

@@ -33,9 +33,10 @@ @cxt.load("#{path}/js/#{filename}.js") end def process_template(path) contents = IO.read(path).gsub("\n", "") + contents.gsub!('"', '\"') template_name = path.gsub(base_path, "").split(".").first "window.JST[\"#{template_name}\"] = #{method}(\"#{contents}\");" end def jst_heading