class Tilt::RadiusTemplate

Radius Template github.com/jlong/radius/

Public Instance Methods

allows_script?() click to toggle source
   # File lib/tilt/radius.rb
37 def allows_script?
38   false
39 end
evaluate(scope, locals, &block) click to toggle source
   # File lib/tilt/radius.rb
23 def evaluate(scope, locals, &block)
24   context = ContextClass.new
25   context.tilt_scope = scope
26   context.define_tag("yield", &block) if block
27   locals.each do |tag, value|
28     context.define_tag(tag) do
29       value
30     end
31   end
32 
33   @options[:tag_prefix] = 'r' unless @options.has_key?(:tag_prefix)
34   Radius::Parser.new(context, @options).parse(@data)
35 end