From: "Nathaniel S. H. Brown" Date: 2006-01-22T16:17:36+09:00 Subject: Re: [ANN] Radius 0.0.1 -- Powerful Tag-Based Templates This looks a lot like PHPTAL. http://phptal.motion-twin.com/ Nice work. Would love to see a .rad extension for Rails at some point :) -Nb ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel S. H. Brown http://nshb.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > -----Original Message----- > From: John W. Long [mailto:ng@johnwlong.com] > Sent: January 21, 2006 9:18 PM > To: ruby-talk ML > Subject: [ANN] Radius 0.0.1 -- Powerful Tag-Based Templates > > I am pleased to announce the immediate release of Radius > 0.0.1. This is very beta right now, but I wanted to release > it so that I could begin getting feedback. > > Radius is a small, but powerful tag-based template language > for Ruby inspired by the template languages used in > MovableType and TextPattern > . It uses tags similar to HTML, but can > be used to generate any form of plain text (XML, e-mail, etc...). > > Download: > http://rubyforge.org/frs/?group_id=1262 > > Documentation: > http://radius.rubyforge.org > > Instalation: > % gem install radius > > A small usage example: > > class ThreeStoogesContext < Radius::Context > def initialize > @prefix = 'ts' > end > def stooge(attr) > content = '' > ["Larry", "Moe", "Curly"].each do |name| > @name = name > content << yield > end > content > end > def name(attr) > @name > end > end > > parser = Radius::Parser.new(ThreeStoogesContext.new) > > template = <<-TEMPLATE >
    > >
  • >
    >
> TEMPLATE > > puts parser.parse(template) > > > This will output: > >
    > >
  • Larry
  • > >
  • Moe
  • > >
  • Curly
  • > >
> > > Learn more by reading the Quick Start guide: > http://radius.rubyforge.org/files/QUICKSTART.html > > Enjoy! >