class Tilt::RadiusTemplate

  1. lib/tilt/radius.rb
Superclass: Template

Methods

Public Instance

  1. allows_script?
  2. evaluate

Public Instance methods

allows_script?()
[show source]
   # File lib/tilt/radius.rb
92 def allows_script?
93   false
94 end
evaluate(scope, locals, &block)
[show source]
   # File lib/tilt/radius.rb
78 def evaluate(scope, locals, &block)
79   context = ContextClass.new
80   context.tilt_scope = scope
81   context.define_tag("yield", &block) if block
82   locals.each do |tag, value|
83     context.define_tag(tag) do
84       value
85     end
86   end
87 
88   @options[:tag_prefix] = 'r' unless @options.has_key?(:tag_prefix)
89   Radius::Parser.new(context, @options).parse(@data)
90 end