module Tempeh::Helpers
Constants
- DEFAULT_ARGS
Public Instance Methods
render(path, args = DEFAULT_ARGS)
click to toggle source
# File lib/tempeh.rb, line 71 def render(path, args = DEFAULT_ARGS) instance_exec args, &tempeh_template_for(path) end
tempeh_template_for(path)
click to toggle source
# File lib/tempeh.rb, line 75 def tempeh_template_for(path) Tempeh.cache[path] ||= Tempeh.compile(File.read(path)) end