Download The FunnelWeb tutorial
Transcript
7.4 Avoiding Errors And Inconsistencies
7.4 Avoiding Errors And Inconsistencies
Reference
FunnelWeb provides the opportunity to eliminate all kinds of errors and
inconsistencies by replacing text names with FunnelWeb macro names that
cannot be misspelt without being detected by FunnelWeb. This page provides
some examples of this.
Developer
Tutorial
1 Introduction
2 Macros
3 Typesetting
4 Example
5 Hints
6 Examples
7 Webmaking
SEARCH
Minor Style Elements
Have you ever done this:
This is <B Very Important</B>!
These kinds of errors can be eliminated by replacing HTML constructs, even
simple ones, by FunnelWeb macros:
@$@<B@>@(@1@)@M@{<B>@1</B>@}
...
This is @<B@>@(Very Important@)!
While this is a bit messier, it eliminates the chance of an error because if you get
the syntax wrong, FunnelWeb will generate an error at "compile time", which is
a lot better than receiving email from some random web visitor. It's true that the
same level of checking can be obtained by running an HTML syntax checker
over your web. However, if you're using FunnelWeb for all its other benefits,
you might as well use this aspect too.
File Names In Hyperlinks
Another source of error in webs is bad internal links. This can occur when you
rename a file and forget to "fix up" all the links to it, and when you make a
typing error when typing in a filename in a hyperlink.
You can use FunnelWeb to eliminate both of these kinds of error, by defining a
macro for each output file. This is easier to do than explain:
@!************************************************
@$@<Begin page@>@(@1@)@M@{
<HTML>
<HEAD>
http://www.ross.net/funnelweb/tutorial/web_errors.html (1 of 5) [3/3/2000 9:39:31 PM]