You have a bug in instantiate_template_from_string, where opts aren't being passed correctly to Tilt.new. In addition, in lib/angelo/templates.rb, line 61, the code render = ->{ template.render(self, locals) } should respect the :scope option, if set.
Hello. It sounds like you have all the ingredients for a PR. I've not had much time for this project lately, but am happy to review fixes if you do. Thanks!
You have a bug in
instantiate_template_from_string
, whereopts
aren't being passed correctly toTilt.new
. In addition, inlib/angelo/templates.rb
, line 61, the coderender = ->{ template.render(self, locals) }
should respect the:scope
option, if set.