lib/glue/template.rb in glue-0.30.0 vs lib/glue/template.rb in glue-0.31.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'glue/flexob' +require 'facets/more/openobject' require 'glue/configuration' module Glue # A template is a text file with embeded Ruby code. The template @@ -162,18 +162,18 @@ # Strip xml comments from templates? setting :strip_xml_comments, :default => false, :doc => 'Strip xml comments from templates?' class << self - include Glue::TemplateMixin + include TemplateMixin alias_method :compile, :compile_template alias_method :transform, :compile_template alias_method :evaluate, :evaluate_template alias_method :process, :process_template end - include Glue::TemplateMixin + include TemplateMixin # Helper. def render(template) str = '' @@ -185,11 +185,11 @@ # A Template that reads from files and also # provides a simple but effective caching scheme. # An intuitive binding mechanism provides the # expansion environment. -class FileTemplate < Flexob - include Glue::TemplateMixin +class FileTemplate < OpenObject + include TemplateMixin @@compiled_template_cache = {} attr_accessor :template_filename