[Thamesvalley-pm] generating HTML
gmatt at nerc.ac.uk
Fri Oct 19 01:49:52 PDT 2007
some great ideas, thanks.
Andy (and everyone else) suggested templates which having done a bit of
digging looks to be an excellent suggestion (from a perl celebrity it
Dave showed me how to do quoting in a more sane way - thanks Dave, that
was driving me nuts:
print INDEX qq( <tr>
<td style="vertical-align: top;">$host<br>
and also here documents - I started out using here docs but it plays
havoc with readability. However, I might revisit them for assigning
large chunks of html to variables if I dont go with templates.
ed suggested including a file from disk and substituting bits of it.
This is kind of what I was thinking of and I'll have to consider it
further but I think it may be too limiting if I cant be sure of the
exact structure of my page in advance.
Lots to think about... thanks guys.
Greg Matthews 01491 692445
Head of UNIX/Linux, iTSS Wallingford
This message (and any attachments) is for the recipient only. NERC
is subject to the Freedom of Information Act 2000 and the contents
of this email and any reply you make may be disclosed by NERC unless
it is exempt from release under the Act. Any material supplied to
NERC may be stored in an electronic records management system.
More information about the Thamesvalley-pm