lib/dry/view/renderer.rb in dry-view-0.1.0 vs lib/dry/view/renderer.rb in dry-view-0.1.1
- old
+ new
@@ -35,10 +35,10 @@
def render(path, scope, &block)
tilt(path).render(scope, &block)
end
def tilt(path)
- tilts.fetch(path) { tilts[path] = Tilt[engine].new(path) }
+ tilts.fetch(path) { tilts[path] = Tilt[engine].new(path, nil, default_encoding: "utf-8") }
end
def lookup(name)
template?(name) || template?("shared/#{name}") || !root? && chdir('..').lookup(name)
end