Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Jig 0.1.0 Released
Gary Wright
5/17/2007 11:35:00 PM
Jig version 0.1.0 has been released.
http://www.rubyforge.org/pr...
A jig is a data structure designed to facilitate construction and
manipulation of strings with an inherent hierarchical syntax. The
idea is derived from the <bigwig> project (
http://www.brics....
)
and in particular the XML templating constructs described in the
paper: A Type System for Dynamic Web Documents
(
http://www.brics....
publications/dyndoc.pdf). The name is
derived from woodworking where a jig is a template designed to guide
other tools.
A jig is an ordered sequence of objects (usually strings) and named
gaps. When rendered as a string by Jig#to_s, the objects are
rendered by calling #to_s on each object in order. The gaps are skipped.
A new jig may be constructed from an existing jig by 'plugging' one
or more of the named gaps. The new jig shares the objects and their
ordering from the original jig but with the named gap replaced with
the 'plug'. Gaps may be plugged by any object or sequence of
objects. When a gap is plugged with another jig, the contents
(including gaps) are incorporated into the new jig.
In addition to strings and gaps, a Jig may contain proc objects
(or lambdas or methods). Procs within a jig are not evaluated until
the jig is rendered as a string by #to_s.
The Jig package includes subclasses for constructing XML, XHTML,
and CSS documents.
Documentation
http://jig.rubyforg...
Install (once the gem shows up in the gem mirrors):
gem install jig
Gary Wright
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Jig 0.1.0 Released
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password