Class: Myth::Rails::MythTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/myth/rails/myth_template.rb

Overview

Myth template implementation. See: myth.io/

Myth templates do not support object scopes, locals, or yield.

Instance Method Summary collapse

Instance Method Details

#allows_script?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/myth/rails/myth_template.rb', line 20

def allows_script?
  false
end

#evaluate(scope, locals, &block) ⇒ Object



16
17
18
# File 'lib/myth/rails/myth_template.rb', line 16

def evaluate(scope, locals, &block)
  @output ||= ::Myth.preprocess(data, options)
end

#prepareObject



13
14
# File 'lib/myth/rails/myth_template.rb', line 13

def prepare
end