while i was recovering from a flue i worked on the scripts i used to regenerate the website. I originally wrote these scripts along with my students as a case of study for developing a small, slowly changing website and keeping it manageable.

the experimental website is (temporarily) hosted at

http://rivet.biol.unipr.it/index.rvt

or at

http://rivet.biol.unipr.it/

through the latter link the same pages are shown but their local path turns into a static html page (mod_rewrite maps these urls to the template :e.g. /about.html -> /index.rvt?show=about). By pointing a mirroring tool to the static form of the site should generate a static image of it.

I haven't done much on the content of the pages, except for creating a web page for each example already in the docs (by clicking the 'examples' link the 'hello world' example appears and a new menu linking to all the examples shows up).

The core of the site generation is a template and a site map, an xml document where links are organized into groups incidentally called menus ;-). Page contents are stored in XML files along with other metadata (Author, Last Changes timestamp etc). In every XML file a central role is played by the "content" tag elements. These elements *must* be nodes to which a valid xhtml fragment representing the page main content is attached. Actually there are some extensions (e.g. to include program code, rivet templates or other non xml-compliant html code) that are handled and reworked internally into valid xhtml. (More on this in docs I am writing)

For those who might be interested in testing the scripts: a feature available is that the website can go multilingual. An example is shown here:

http://rivet.biol.unipr.it/index.rvt?show=shaded_table

the page is visible also in italian

http://rivet.biol.unipr.it/index.rvt?show=shaded_table&lang=it

At the moment the site doesn't map properly static pages of the form

(page).(language).html

into the corresponding parameters for the template, but it should be easy and straightforward to do it.

I'd like to commit the scripts and pages to Rivet's svn repository as an example of possible development with Rivet and other Tcl related tools. I would like to commit also the html pages to the website.

Comments and suggestions are welcome. If a competent person in styling a website had a better template (and associated style sheet) it would be an excellent way to prepare the website for the new release of Rivet.

-- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to