The first 5 require statements produce the following:
<HTML>
<HEAD>
<TITLE>Various :: Test Node #1</TITLE>
<STYLE TYPE="text/css">
BODY {background: white;}
H2.std-header {color: white; background-color: #006699;}
H5.std-header {color: white; background-color: #006699;}
P.std-title {color: #006699; background-color: #CCCCCC;}
A {color: #006699;}
A.header {color: #FFFFFF}
EM {color: #006699;}
KBD {font-family: serif; color: #006699;}
PRE.code {color: #006699;}
STRONG {color: #006699;}
<STYLE>
</HEAD>
<BODY>
<CENTER>
<H2 CLASS="std-header">Various :: Test Node #1
<H5 CLASS="std-header">
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%"><TR>
<TD WIDTH="20%"><A HREF="/shock/index.pl?NodeID=1" CLASS="header">Main
+</A></TD>
<TD WIDTH="20%"><A HREF="/" CLASS="header">Music</A></TD>
<TD WIDTH="20%"><A HREF="/shock/index.pl?NodeSection=linux" CLASS="hea
+der">Linux</A></TD>
<TD WIDTH="20%"><A HREF="/shock/index.pl?NodeSection=perl" CLASS="head
+er">Perl</A></TD>
<TD WIDTH="20%"><A HREF="/family/index.php" CLASS="header">Family</A><
+/TD>
<TD WIDTH="20%"><A HREF="/shock/links.php" CLASS="header">Links</A></T
+D>
</TR></TABLE>
</H5>
</H2>
</CENTER>
I realize using the require statements introduce certain maintainability issues. My ultimate goal is to be able to make a change in one place and have that change reflected throughout the site. My current approach may not be "the best way to do it," but as I (attempted to say | said) at the outset, this is more a learning exercise than an actual production system.
If things get any worse, I'll have to ask you to stop helping me.
-
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.
|