lib/deas/template.rb in deas-0.5.0 vs lib/deas/template.rb in deas-0.6.0

- old
+ new

@@ -6,9 +6,13 @@ def self.helpers(*helper_modules) Deas::Template::RenderScope.class_eval{ include *helper_modules } end + def self.helper?(helper_module) + Deas::Template::RenderScope.included_modules.include?(helper_module) + end + attr_reader :name, :options def initialize(sinatra_call, name, options = nil) @options = options || {} @options[:scope] = RenderScope.new(sinatra_call)