I use a simple Perl module written by our perl team. And it's based on templates.
i.e.
1.template:
===============
<html>
<body>
<p>Title</p>
<content>
The main page of my site is here.
</content>
</body>
===============
You can view your htmls even if you just editting them locally on your computer using your facourite tool for that. It won't look damaged etc.
I your script you call it like:
$a=open_template("1.template");
$a->change("content", "2.html");
And text "The main page of my site is here." from 1.template will be changed to content of 2.html. Or you can use dynamically created variables instead of files.
If someone is interested, I'll post it. Thanks for listening to me. Maybe it's not about systems you can use for html templates but it's a tiny system that helps to run big sites fast.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|