class Sanford::TemplateEngine
Attributes
logger[R]
opts[R]
source_path[R]
Public Class Methods
new(opts = nil)
click to toggle source
# File lib/sanford/template_engine.rb, line 10 def initialize(opts = nil) @opts = opts || {} @source_path = Pathname.new(@opts['source_path'].to_s) @logger = @opts['logger'] || Sanford::NullLogger.new end
Public Instance Methods
==(other_engine)
click to toggle source
Calls superclass method
# File lib/sanford/template_engine.rb, line 24 def ==(other_engine) if other_engine.kind_of?(TemplateEngine) self.source_path == other_engine.source_path && self.opts == other_engine.opts else super end end
partial(name, locals)
click to toggle source
# File lib/sanford/template_engine.rb, line 20 def partial(name, locals) raise NotImplementedError end
render(name, service_handler, locals)
click to toggle source
# File lib/sanford/template_engine.rb, line 16 def render(name, service_handler, locals) raise NotImplementedError end