Class: Roy::RoyTemplate

Inherits:
Tilt::Template
  • Object
show all
Defined in:
lib/roy/roy_template.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.engine_initialized?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/roy/roy_template.rb', line 7

def self.engine_initialized?
  true
end

Instance Method Details

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



18
19
20
# File 'lib/roy/roy_template.rb', line 18

def evaluate(scope, locals, &block)
  @output ||= @engine.compile(data)
end

#initialize_engineObject



11
12
# File 'lib/roy/roy_template.rb', line 11

def initialize_engine
end

#prepareObject



14
15
16
# File 'lib/roy/roy_template.rb', line 14

def prepare
  @engine = RoyEngine.new(@file, options)
end