class Tilt::RadiusTemplate

Radius Template github.com/jlong/radius/

Public Instance Methods

allows_script?() click to toggle source
   # File lib/tilt/radius.rb
92 def allows_script?
93   false
94 end
evaluate(scope, locals, &block) click to toggle 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