From: ahoward Date: 2002-12-11T12:16:08+09:00 Subject: Re: Using amrita for generating static content? [snip] > Does anyone know how easy it would be for me to use amrita in this way? [snip] i put together a powerpoint type presentation using amrita not long ago. the code to generate the slides was **really** easy to create, and made use of amrita's ability to generate content into any object supporting the '<<' operator. the presentation has a slide about itself located at http://eli.fsl.noaa.gov/ruby/class/0/presentation/slide.cgi?n=21 if you click on 'slide.cgi' you will see an example of using amrita to place it's generated content into a string, which could then be printed to a file. i suppose you could append (<<) directly into the file... note that the 'data' hash could be populated from **any** conceivable source, including a database, filesystem, or cgi environment. so it's absolutely possible to generate static pages. just don't populate your page's variables from data gotten from the cgi module and you can create static pages. hope this helps. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ==================================== SIGSIG -- signature too long (core dumped)