class Rehab::Template

Attributes

source[R]
tilt[R]

Public Class Methods

new(opts = {}) { || ... } click to toggle source
# File lib/rehab/template.rb, line 6
def initialize(opts = {})
        @source = yield
        @tilt = Temple::Templates::Tilt(Rehab::Engine, opts).new { source }
end

Public Instance Methods

render(scope) click to toggle source
# File lib/rehab/template.rb, line 11
def render(scope)
        tilt.render(scope)
end