lib/stache/asset_helper.rb in stache-0.0.2 vs lib/stache/asset_helper.rb in stache-0.0.3

- old
+ new

@@ -5,10 +5,10 @@ def template_include_tag(*sources) sources.collect do |source| exploded = source.split("/") file = exploded.pop file = file.split(".").first - template_path = ::Rails.root.join('app/views', *exploded, "_#{file}.html.mustache") + template_path = Stache.template_base_path.join(exploded.join("/"), "_#{file}.html.mustache") template = ::File.open(template_path, "rb") content_tag(:script, template.read.html_safe, :type => "text/html", :id => "#{file.dasherize.underscore}_template") end.join("\n").html_safe end end \ No newline at end of file