Skip to content

Commit

Permalink
Merge pull request #5 from gotar/fix-utf-8-tilt-error
Browse files Browse the repository at this point in the history
Fix error: Template file is not valid US-ASCII
  • Loading branch information
timriley committed Jul 6, 2016
2 parents 825a022 + 39e3f96 commit 10725ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dry/view/renderer.rb
Expand Up @@ -37,7 +37,7 @@ def render(path, 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)
Expand Down

0 comments on commit 10725ad

Please sign in to comment.