lib/lono/template/template.rb in lono-3.3.4 vs lib/lono/template/template.rb in lono-3.4.0

- old
+ new

@@ -2,10 +2,11 @@ require 'json' require 'base64' class Lono::Template::Template include Lono::Template::Helpers + include Lono::CurrentRegion include ERB::Util def initialize(name, block=nil, options={}) # Taking care to name instance variables with _ in front because we load the # variables from config/variables and those instance variables can clobber these @@ -66,10 +67,9 @@ module_name = filename.classify require path self.class.send :include, module_name.constantize end - end def source(path) @_source = path[0..0] == '/' ? path : "#{@_project_root}/templates/#{path}" @_source += ".#{@_detected_format}"