13 Apr 2004 fxn   » (Master)


Some classes are already implemented. I did some trials with HTTP::Daemon and works like a charm. In a few lines you've got a simple HTTP server running where you can hook your custom code. It comes with LWP and based on its classes.

I founded an interesting module for config files called Config::General. It provides a syntax based on Apache's, where tags can be nested a la XML, there's file inclusion, variable interpolation, here documents, .... The example of two days ago becomes:

   title: About Foos And Bars
   author: The Author
   theme: clean
   pretty_printer: source_highlight_wrapper.sh
     title: Section Title
       title: Subsection Title
         title: Slide Title
         body: <<BODY
   This slide introduces foo, which is further detailed
   <a href="[% link_to_sref('bar') %]">later</a>.
but looks too verbose to me compared to
   title 'About Foos And Bars';
   author 'The author';
   theme 'clean';
   pretty_printer 'source_highlight_wrapper.sh';
   section 'Section Title';
   subsection 'Subsection Title';
   slide 'Slide Title', <<'BODY';
   This slide introduces foo, which is further detailed
   <a href="[% link_to_sref('bar') %]">later</a>.
Moreover with the latter to configure a presentation those functions are created as clousures before do()ing the file and Perl does the rest. Couldn't be easier.

9 Ball

I entered a 9 Ball Tournament to be held next Sunday in Namcos' at Diagonal Mar. It has been a long time since I touched the cue, but it will funny.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!