search for: define_tag

Displaying 1 result from an estimated 1 matches for "define_tag".

Did you mean: define_flag
2006 May 01
1
Radius 0.0.1 -- Powerful Tag-Based Templates
...rubyforge.org/frs/?group_id=1262 Documentation: http://radius.rubyforge.org Instalation: % gem install --remote radius A small example: require ''radius'' # Define tags on a context that will be available to a template: context = Radius::Context.new do |c| c.define_tag ''hello'' do ''Hello world'' end c.define_tag ''repeat'' do |tag| number = (tag.attr[''times''] || ''1'').to_i result = '''' number.times { result << tag.expan...