| 1 |
|
| 2 |
<HTML> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
<HEAD> |
| 29 |
<TITLE>7.8 Hints And Conventions</TITLE> |
| 30 |
<STYLE TYPE="text/css"> <!-- A {text-decoration: none} // --> </STYLE> |
| 31 |
</HEAD> |
| 32 |
<BODY BACKGROUND="binary/background.gif" |
| 33 |
BGCOLOR="#FFFFFF" |
| 34 |
TEXT="#000000" |
| 35 |
VLINK="#660000" |
| 36 |
LINK="#FF0000" |
| 37 |
ALINK="#CC0000"> |
| 38 |
|
| 39 |
<TABLE WIDTH="490"> |
| 40 |
<TR> |
| 41 |
<TD WIDTH="130" VALIGN="top"> |
| 42 |
<IMG SRC="binary/d_clear.gif" ALT="" WIDTH="130" HEIGHT="1"><BR> |
| 43 |
|
| 44 |
<FONT SIZE="2"> |
| 45 |
<BR> |
| 46 |
|
| 47 |
<A HREF="http://www.ross.net/" |
| 48 |
TARGET="rosshome" |
| 49 |
onClick="window.open('','rosshome','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 50 |
> |
| 51 |
<IMG SRC="binary/rossnet_logo.gif" |
| 52 |
WIDTH="64" HEIGHT="32" |
| 53 |
BORDER="0" ALT="RossNet" |
| 54 |
HSPACE="0" VSPACE="1"></A><BR> |
| 55 |
<BR> |
| 56 |
|
| 57 |
<A HREF="../index.shtml" |
| 58 |
TARGET="funnelweb" |
| 59 |
onClick="window.open('','funnelweb','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 60 |
> |
| 61 |
<IMG SRC="binary/linklogo.gif" |
| 62 |
WIDTH="64" HEIGHT="32" |
| 63 |
BORDER="0" ALT="FunnelWeb" |
| 64 |
HSPACE="0" VSPACE="1"></A><BR> |
| 65 |
<BR> |
| 66 |
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD BGCOLOR="#000000"> |
| 67 |
<A HREF="../reference/index.html" |
| 68 |
TARGET="funnelwebreference" |
| 69 |
onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 70 |
><FONT COLOR="#FFFFFF"><B>Reference</B></FONT></A><BR> |
| 71 |
<BR> |
| 72 |
<A HREF="../developer/index.html" |
| 73 |
TARGET="funnelwebdeveloper" |
| 74 |
onClick="window.open('','funnelwebdeveloper','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 75 |
><FONT COLOR="#FFFFFF"><B>Developer</B></FONT></A><BR> |
| 76 |
<BR> |
| 77 |
<A HREF="index.html"><FONT COLOR="#FFFFFF"><B>Tutorial</B></FONT></A><BR> |
| 78 |
<A HREF="intro.html"><FONT COLOR="#FFFFFF">1 Introduction</FONT></A><BR> |
| 79 |
<A HREF="macro.html"><FONT COLOR="#FFFFFF">2 Macros</FONT></A><BR> |
| 80 |
<A HREF="type.html"><FONT COLOR="#FFFFFF">3 Typesetting</FONT></A><BR> |
| 81 |
<A HREF="example.html"><FONT COLOR="#FFFFFF">4 Example</FONT></A><BR> |
| 82 |
<A HREF="hints.html"><FONT COLOR="#FFFFFF">5 Hints</FONT></A><BR> |
| 83 |
<A HREF="examples.html"><FONT COLOR="#FFFFFF">6 Examples</FONT></A><BR> |
| 84 |
<A HREF="web.html"><FONT COLOR="#FFFFFF">7 Webmaking</FONT></A><BR> |
| 85 |
|
| 86 |
<BR> |
| 87 |
<A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR> |
| 88 |
</FONT> |
| 89 |
</TD></TR></TABLE> |
| 90 |
|
| 91 |
|
| 92 |
</TD> |
| 93 |
<TD WIDTH="360" VALIGN="top"> |
| 94 |
<FONT SIZE="3"> |
| 95 |
|
| 96 |
|
| 97 |
<A HREF="../reference/index.html"><IMG SRC="binary/title.gif" |
| 98 |
WIDTH="302" HEIGHT="24" |
| 99 |
BORDER="0" ALT="FunnelWeb Tutorial Manual" |
| 100 |
HSPACE="0" VSPACE="0"></A> |
| 101 |
<P><FONT SIZE="5">7.8 Hints And Conventions</FONT><BR> |
| 102 |
|
| 103 |
|
| 104 |
<P><BR><FONT SIZE="4"><STRONG>Where To Include Include Files</STRONG></FONT><BR> |
| 105 |
|
| 106 |
<P>It's better to include your include files at the end of the |
| 107 |
main web file, as if FunnelWeb generates an error, the line number |
| 108 |
in the listing file is easier to correlate with the main file if |
| 109 |
several files have not been included. |
| 110 |
|
| 111 |
<P><BR><FONT SIZE="4"><STRONG>Separating Pages</STRONG></FONT><BR> |
| 112 |
|
| 113 |
<P>It's a good idea to separate the macro for each page in a web |
| 114 |
in the FunnelWeb file, by a line of asterisks in a FunnelWeb comment. |
| 115 |
This makes the FunnelWeb source file easier to work on in your |
| 116 |
text editor. |
| 117 |
|
| 118 |
<P> |
| 119 |
<PRE> |
| 120 |
@!************************************************ |
| 121 |
|
| 122 |
@O@<index.html@>@{ |
| 123 |
@<Begin page@>@(Dave's Home Page@) |
| 124 |
|
| 125 |
<P>Welcome to my home page. Check out my |
| 126 |
<A HREF="@<Links FILE@>">links page</A>. |
| 127 |
|
| 128 |
@<End page@> |
| 129 |
@} |
| 130 |
|
| 131 |
@!************************************************ |
| 132 |
|
| 133 |
@$@<Links FILE@>@M@{links.html@} |
| 134 |
@O@<links.html@>@{ |
| 135 |
@<Begin page@>@(Dave's Links@) |
| 136 |
|
| 137 |
<P>Check out @<Yahoo@> and @<Dilbert@>. |
| 138 |
|
| 139 |
@<End page@> |
| 140 |
@} |
| 141 |
|
| 142 |
@!************************************************ |
| 143 |
</PRE> |
| 144 |
|
| 145 |
<P><BR><FONT SIZE="4"><STRONG>Input And Output Line Lengths</STRONG></FONT><BR> |
| 146 |
|
| 147 |
<P>When using FunnelWeb to create webs, you will probably find |
| 148 |
that your input and output files have lines longer than the |
| 149 |
FunnelWeb standard 80 characters. So you may wish to include the |
| 150 |
following directives in your main and include files: |
| 151 |
|
| 152 |
<P> |
| 153 |
<PRE> |
| 154 |
@p maximum_input_line_length = 200 |
| 155 |
@p maximum_output_line_length = 200 |
| 156 |
</PRE> |
| 157 |
|
| 158 |
<P><BR><FONT SIZE="4"><STRONG>Macro Naming Conventions</STRONG></FONT><BR> |
| 159 |
|
| 160 |
<P>Since 1994, I (<A HREF="http://www.ross.net/">Ross Williams</A>) have been using FunnelWeb to |
| 161 |
generate all the webs in all my webspaces. During this time, I have |
| 162 |
developed some macro naming conventions which you may wish to adopt. |
| 163 |
|
| 164 |
<P><BLOCKQUOTE><B>FILE:</B> Use this suffix for macros that contain |
| 165 |
the names of files that form part of the web.</BLOCKQUOTE> |
| 166 |
|
| 167 |
<P><BLOCKQUOTE><B>WWW:</B> Use this suffix for macros that define |
| 168 |
web directory URLs, up to and including the trailing slash. |
| 169 |
The URL may be absolute or relative, depending on the context.</BLOCKQUOTE> |
| 170 |
|
| 171 |
<P><BLOCKQUOTE><B>WWW/abs:</B> Use this suffix where the URL must |
| 172 |
be absolute.</BLOCKQUOTE> |
| 173 |
|
| 174 |
<P><BLOCKQUOTE><B>EMAIL:</B> Use this suffix for email addresses.</BLOCKQUOTE> |
| 175 |
|
| 176 |
<P><BLOCKQUOTE><B>FTP:</B> Use this suffix for FTP directory addresses.</BLOCKQUOTE> |
| 177 |
|
| 178 |
<P><BLOCKQUOTE><B>WINDOWNAME:</B> Use this suffix for the names of |
| 179 |
browser windows.</BLOCKQUOTE> |
| 180 |
|
| 181 |
<P>Here are some examples: |
| 182 |
|
| 183 |
<P> |
| 184 |
<PRE> |
| 185 |
@$@<Home FILE@>@Z@M@{index.html@} |
| 186 |
@$@<Ross WWW@>@Z@M@{http://www.ross.net/@} |
| 187 |
@$@<Ross WWW/abs@>@Z@M@{http://www.ross.net/@} |
| 188 |
@$@<Ross EMAIL@>@Z@M@{[email protected]@} |
| 189 |
@$@<Ross FTP@>@Z@M@{@- |
| 190 |
ftp://www.ross.net/clients/ross/@} |
| 191 |
@$@<Ross WINDOWNAME@>@Z@M@{ross@} |
| 192 |
</PRE> |
| 193 |
|
| 194 |
|
| 195 |
<P> |
| 196 |
<TABLE WIDTH="100%"> |
| 197 |
<TR> |
| 198 |
<TD ALIGN="left" VALIGN="bottom"><A HREF="web_param.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD> |
| 199 |
<TD ALIGN="center" VALIGN="bottom"><A HREF="web.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD> |
| 200 |
<TD ALIGN="right" VALIGN="bottom"><A HREF="web.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD> |
| 201 |
</TR> |
| 202 |
</TABLE> |
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
<HR> |
| 207 |
<FONT SIZE="2"> |
| 208 |
<A HREF="mailto:[email protected]">Webmaster</A> |
| 209 |
<A HREF="copyright.html">Copyright © Ross N. Williams 1992,1999. All rights reserved.</A><BR> |
| 210 |
</FONT> |
| 211 |
|
| 212 |
</FONT> |
| 213 |
</TD> |
| 214 |
</TR> |
| 215 |
</TABLE> |
| 216 |
|
| 217 |
|
| 218 |
</BODY> |
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
</HTML> |