lib/stache/handlebars/view.rb in stache-0.9.1 vs lib/stache/handlebars/view.rb in stache-1.0.0.rc

- old
+ new

@@ -3,12 +3,14 @@ module Stache module Handlebars # # A Convienent Base Class for the views. Subclass this for autoloading magic with your templates. class View < ::Handlebars::Context + attr_accessor :view - # crickets. So, this isn't as useful right now since you have to call #register_helper - # and #partial_missing on the instance, but I'm sure we'll find a use for it :). + def method_missing(method, *args, &block) + view.send(method, *args, &block) + end end end end \ No newline at end of file