kenichi / angelo

Sinatra-like DSL for Reel that supports WebSockets and SSE
Other
303 stars 23 forks source link

scope option being ignored completely #71

Open stugol opened 7 years ago

stugol commented 7 years ago

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.

kenichi commented 7 years ago

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!