From t_leitner at gmx.at Wed Aug 30 07:03:35 2006 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 30 Aug 2006 13:03:35 +0200 Subject: [webgen-users] Preliminary version of webgen 0.4.0 Message-ID: <20060830130335.05687a39@localhost> Hello everyone! I have uploaded a preliminary version of webgen 0.4.0 which can be downloaded via http://webgen.rubyforge.org/webgen-0.4.0.tgz . This version can already be used to convert a website to HTML. However, the command line interface is not working, therefore you have to do something like this to run webgen (save the following as run.rb): require 'webgen/website' Webgen::DEFAULT_PLUGIN_LOADER.load_from_dir( 'lib/webgen/plugins', 'lib/' ) website = Webgen::WebSite.new(ARGV[0]); website.render And then run this script in the webgen root directory via: ruby -Ilib run.rb WEBSITE_DIR What's new and working in this version: * nesting of templates possible * templates have the same format as page files * GalleryFileHandler now uses templates for picture and gallery pages * html headers h1 - h6 with an id now get converted to section nodes which can be displayed using the menu style 'section' * completely reworked plugin system * test cases for (nearly) all source files (use 'rake test' to execute them) * better log system where method method name is shown in log message * much stuff that has no directly visible effect on the output :-) What's not working currently: * backing file support for virtual nodes * CLI * documentation not updated * probably some more stuff ;-) All plugins are already refactored to work with the new plugin system and now I 'only' have to redo the CLI. I hope to release a working version with a CLI soon (ie. in one or two month). If you have any suggestions or questions, feel free to write/ask! Thomas