Displaying 1 result from an estimated 1 matches for "tag_prefix".
Did you mean:
flag_prefix
2006 May 01
1
Radius 0.0.1 -- Powerful Tag-Based Templates
...ag.attr[''times''] || ''1'').to_i
result = ''''
number.times { result << tag.expand }
result
end
end
# Create a parser to parse tags that begin with ''r:''
parser = Radius::Parser.new(context, :tag_prefix => ''r'')
# Parse tags and output the result
puts parser.parse("A small example:\n" +
''<r:repeat times="3">* <r:hello />!\n</r:repeat>'')
Output:
A small example:
* Hello world!
* Hello world!
* Hell...