Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

  (email not shown publicly)

I work for MessageLabs [] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Monday February 16, 2004
01:04 PM

Wiki proposal - dot file templates

[ #17441 ]

Here's something I'm going to implement in the AxKit wiki. This is mostly for standardization of project pages at work.

If you create a page with a dot in the name, the part after the dot should be used to pull out a template.

e.g. if I create: FooBar.usecase it should start off with a template for use cases.

and if I create: FooBar.project it should start off with a template for projects.

The templates should be the pulled from the page with no prefix, so the .usecase page should be used for use case templates, and the .project page should be used for project page templates.

This way anyone can hack on the templates (they're version controlled within the wiki like everything else) and it becomes much easier to create similar looking pages.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Ooooo! Cool idea!

    Who's going to design the .pornspam template? ;->


  • Another approach is to add support for directives. In adapting my Wiki for blogging, I added support for
      #title optional title with HTML markup
      #abstract optional abstract with HTML markup
      #template filename
      #markup (wiki|html|pod)
    If these appear at the top of the page, they're stripped off and honored.

    • The downside with this is you still start with a blank page. With dotfile templates you start with a full template file (be it in POD or XML or whatever format you choose for the template) and people who are writing certain types of new files can start by just filling in the blanks.

      Hmm, must get to implementing it now :-)
  • Why not let you use _any_ wiki page as a template for the new page.