From: (e-mail address removed)
Subject: Re: narf
Date: September 24, 2005 3:19:18 AM EDT
To: (e-mail address removed)
Hello,
I notice much of the documentation still points toward narf instead of
ruby-web. I imagine you do plan to fix this, but I thought you'd be
interested in case you don't already know.
Thanks for the heads up, I'll be doubling back on the docs.
So how different is ruby-web from narf?
The main incompatible differences are in the templating system. I
don't know how many folks were using Narflates. It's not to
difficult to port an app, but there is enough work to tip the old
major version number.
Narf supported the use of "Narflates" via a Web:
rint_template
( narf_filename, variables_hash ) method.
In ruby-web, the default templating uses erb. Templates are now
loaded via Web::load( filename ), which conceptually (to me) is more
similar to Kernel::load. Web::load looks up the appropriate handler
for an extension (.rb, .rhtml, add your own, etc.), so it can more
easily support multiple templating systems. Also, the ruby-web
interpreter uses Web::load. Thus, ruby-web is used like eruby, as an
interpreter for html/code documents.
(This points to an out of date bit with the docs -- I have a phprb
templating piece that I like, but I since decided to make erb the
standard in ruby-web for simplicities state. The templating section
of the docs still describes the phprb syntax.)
I'd like to ramble about the name. NARF is a negative definition --
Not Another Ruby Framework. NARF is more of an attitude towards
projects. That what we need aren't big ideas, but problem solving
code. For example, the joke of raa-install was that we didn't need
to define a comprehensive RAA.succ package spec, we just needed an
RAA.suck(package) installer.[1]
Ruby-Web is a better description of this particular project.
Cheers,
Patrick
1. Just of the record, most of the labor of raa-install was done by
Tom Clarke and why the lucky stiff. I pretty much just contributed
the bad pun.