Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

templating system

0 views
Skip to first unread message

hornd...@gmail.com

unread,
Aug 12, 2005, 9:56:23 PM8/12/05
to
At work we use a tool (Rational SoDA for Word) to automatically create
our documentation. Most people I've spoken to are quite unhappy with it
because it's slow and buggy (it crashes, runs out of memory fairly
often and it somewhat inconsistant). I've had to use it the past few
weeks to automatically generate our documentation out of Rational Rose.
One thing that is nice about Rose however is that all of the
information we need to generate our documents can be got through
windows OLE. I've tested it with some toy scripts with ruby and it
works wonderfuly. I know there's eruby which is used for the web. Are
there any general purpose templating systems made for ruby? (I saw this
link on OSnews today:
http://www-128.ibm.com/developerworks/opensource/library/os-pythcheetah/?ca=dgr-lnxw07PythonCheetah).
Or is it possible to get eruby to generate general purpose documents
(I've looked into this briefly but haven't got this figured out yet,
pointers here would be useful too). I think if I can get it into a
LaTeX form or HTML I can convert it to the formats we need for
deliverables. Thanks for the help!

Horndude77

Devin Mullins

unread,
Aug 12, 2005, 10:19:28 PM8/12/05
to
hornd...@gmail.com wrote:

>Are
>there any general purpose templating systems made for ruby?
>

http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/index.html

(And others, I'm sure.)

Devin

Ara.T.Howard

unread,
Aug 12, 2005, 10:19:27 PM8/12/05
to

http://raa.ruby-lang.org/project/kwartz/
http://raa.ruby-lang.org/project/misen/

hth.

-a
--
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| Your life dwells amoung the causes of death
| Like a lamp standing in a strong breeze. --Nagarjuna
===============================================================================

James Edward Gray II

unread,
Aug 12, 2005, 10:36:43 PM8/12/05
to
On Aug 12, 2005, at 9:01 PM, hornd...@gmail.com wrote:

> I know there's eruby which is used for the web. Are
> there any general purpose templating systems made for ruby?

ERuby is actually a general purpose tool. And as Devin has already
pointed out with a link, its little brother ERb is a standard library.

James Edward Gray II

hornd...@gmail.com

unread,
Aug 12, 2005, 11:48:47 PM8/12/05
to
Thanks for the quick reply! I'm still pretty new to ruby and hadn't
heard of ERB but, I think it will do nicely. The docs are quite useful.
Nice job! I'll be sure to consult them often. Thanks again!

-----Horndude77

James Britt

unread,
Aug 16, 2005, 9:49:12 AM8/16/05
to
Devin Mullins wrote:
> hornd...@gmail.com wrote:
>
>> Are
>> there any general purpose templating systems made for ruby?
>>
> http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/index.html
>

Better choice:

http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html

James

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys


Jeff Wood

unread,
Aug 16, 2005, 12:37:27 PM8/16/05
to
Also, there is PageTemplate ... available through gem & via direct download

Paul

unread,
Aug 18, 2005, 4:28:16 AM8/18/05
to
have alook at the book Code Generation in Action.
Shows how to use Ruby & erb to generate all sorts of code.
http://www.manning.com/books/herrington

Tom Copeland

unread,
Aug 18, 2005, 6:34:25 AM8/18/05
to

Yup, and Jack Herrington (the author of that book) has put some of his
code on RubyForge:

http://rubyforge.org/users/jherr/

Yours,

Tom


0 new messages