Website layout method
Alexander Leidinger
reject at Leidinger.net
Thu Feb 5 14:08:41 PST 2004
On Thu, 5 Feb 2004 09:45:11 -0800 (PST)
Matthew Dillon <dillon at xxxxxxxxxxxxxxxxxxxx> wrote:
> Perl is not something I would want to wrap our web site files with,
> the exec overhead is horrendous. We should really try to stick with
> tablecg.
WML (not this mobile phone crap, I'm talking about Website Meta
Language: ports/www/wml) allows to write templates, includes and complex
perl functions which get processed into static HTML pages.
No overhead (only static pages), but the same flexibility as with the
actual cgi version (as long as you only want to provide static content).
I've used it on my website and on http://www.illbreakers.com/ (german
text only). The index page for illbreakers in wml is:
---snip---
#include "illbr_page.template" what="Illbreaker_s_94_Bubach"
<subject>Illbreaker's 94 - Home</subject>
Herzlich Willkommen<br>
auf der offiziellen Illbreaker's 94 Bubach Homepage
<justify>
Am 15. November 2003 wurde mit 13 Stimmen dafür, 10 Stimmen dagegen und
3 Enthaltungen beschlossen den Verein aufzulösen. Wir bedanken uns bei
allen, die in den letzten knapp 10 Jahren Spass auf unseren Veranstaltungen
hatten.
</justify>
<br>
<p align="right">
Illbreaker's 94 Bubach
</p>
---snip---
The resulting index.html after running make has a size of ~5.8k.
The menu gets generated by some functions I've written,
enabling/disabling of some menu entries is based upon the "what=" part
(I use it to identify the actual page, the nav-bar contains the logic
how to handle each page). The nav-bar is the same source file for every
page, but the resulting output is different.
Bye,
Alexander.
--
I will be available to get hired in April 2004.
http://www.Leidinger.net Alexander @ Leidinger.net
GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
More information about the Kernel
mailing list