lib/linner/template.rb in linner-0.9.1 vs lib/linner/template.rb in linner-0.10.0

- old
+ new

@@ -47,9 +47,11 @@ def evaluate(scope, locals, &block) @output ||= Handlebars.precompile(data) end end + ERBTemplate.default_mime_type = "application/x-eruby" + register PlainTemplate, "txt" register CSSTemplate, "css" register JavascriptTemplate, "js" register YAMLTemplate, "yml", "yaml" register HandlebarsTemplate, "hbs", "handlebars"