in reply to Off-Line Content Management Scheme?

It looks like a interest quest, :), though I do not know Template::Toolkit, I see following solution:
1/ Xmlize your input data. You can rewrite your C code to output XML rather then HTML.
2/ Prepare XML metadata files, which defines, which parts of your data have to be dressed on which clothes (clothes are other XML metadata)
3/ Prepare relatively generic XSLT stylesheet, which supports that processing (both XML data and metadata as input, HTML as output)
4/ Write the perl script to do these transformations

I think that sometimes it is better to write more code than learn some powerfull but huge tools...
  • Comment on Re: Off-Line Content Management Scheme?

Replies are listed 'Best First'.
Re^2: Off-Line Content Management Scheme?
by ozboomer (Friar) on Jan 03, 2006 at 12:09 UTC
    Some interesting thoughts there, thanks... but beyond my present scope a mite :)

    I've been using Perl for 10+ years now but have yet to learn XML or go beyond HTML (other than some basic CGI). I only learnt a bit about CSS in the last year or two... hence the desire to fix my web sites(!)

    I haven't been working in SysAdmin for some years now so I don't need to "push" Perl as hard as I might have... but I still find Perl can do everything I need in both basic SysAdmin (my home computers) and applications (what with Perl/Tk, etc)... This is why I'm trying to come up with a simple solution, using (mostly) things I know.

      You are right, this is needless effort to study xslt transformations for you. It is powerfull tool supporting combining content and face, but it is long journey to make good knowledge about its advantages and/or disadvantages.