lib/hyde/renderer.rb in hydeweb-0.0.2.pre vs lib/hyde/renderer.rb in hydeweb-0.0.3.pre
- old
+ new
@@ -1,10 +1,12 @@
require "ostruct"
module Hyde
module Renderer
class Base
+ include Hyde::Utils
+
# Reference to {Page}
attr_reader :page
# The filename of the file to be parsed
attr_reader :filename
@@ -48,10 +50,10 @@
scope_object.instance_eval do
def eval_block(src, &block)
# This will let you eval something, and `yield` within that block.
eval src, &block
end
- extend Hyde::TemplateHelpers
+ get_helpers.each { |helper_class| extend helper_class }
end
scope
end