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

- old
+ new

@@ -30,8 +30,19 @@ template = template_finder.call(true) rescue template_finder.call(false) template.source end + def helpers + self.class.helpers + end + alias :h :helpers + + class << self + def helpers + Stache::ViewContext.current + end + alias :h :helpers + end end end -end \ No newline at end of file +end