7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Privoxy 3.1.1 User Manual"
11 HREF="index.html"><LINK
13 TITLE="The Filter File"
14 HREF="filter-file.html"><LINK
16 TITLE="Contacting the Developers, Bug Reporting and Feature
18 HREF="contact.html"><LINK
21 HREF="../p_doc.css"></HEAD
32 SUMMARY="Header navigation table"
41 >Privoxy 3.1.1 User Manual</TH
49 HREF="filter-file.html"
77 NAME="TEMPLATES">10. Templates</H1
82 > built-in pages, i.e. error pages such as the
84 HREF="http://show-the-404-error.page"
88 >"404 - No Such Domain"</SPAN
92 HREF="http://ads.bannerserver.example.com/nasty-ads/sponsor.html"
100 and all pages of its <A
101 HREF="http://config.privoxy.org/"
105 >, are generated from <SPAN
115 > must be running for the above links to work as
118 > These templates are stored in a subdirectory of the <A
119 HREF="config.html#CONFDIR"
125 >. On Unixish platforms,
128 HREF="file:///etc/privoxy/templates/"
132 >/etc/privoxy/templates/</TT
136 > The templates are basically normal HTML files, but with place-holders (called symbols
137 or exports), which <SPAN
140 > fills at run time. You can
141 edit the templates with a normal text editor, should you want to customize them.
146 >Not recommended for the casual user</I
149 just like in configuration files, lines starting with <TT
153 ignored when the templates are filled in.</P
155 > The place-holders are of the form <TT
159 find a list of available symbols, which vary from template to template,
160 in the comments at the start of each file. Note that these comments are not
161 always accurate, and that it's probably best to look at the existing HTML
162 code to find out which symbols are supported and what they are filled in with.</P
164 > A special application of this substitution mechanism is to make whole
165 blocks of HTML code disappear when a specific symbol is set. We use this
166 for many purposes, one of them being to include the beta warning in all
167 our user interface (CGI) pages when <SPAN
171 in in an alpha or beta development stage:</P
181 ><!-- @if-unstable-start -->
183 ... beta warning HTML code goes here ...
185 <!-- if-unstable-end@ --></PRE
191 > If the "unstable" symbol is set, everything in between and including
194 >@if-unstable-start</TT
197 >if-unstable-end@</TT
199 will disappear, leaving nothing but an empty comment:</P
209 ><!-- --></PRE
215 > There's also an if-then-else construct and an <TT
219 mechanism, but you'll sure find out if you are inclined to edit the
222 > All templates refer to a style located at
224 HREF="http://config.privoxy.org/send-stylesheet"
228 >http://config.privoxy.org/send-stylesheet</TT
231 This is, of course, locally served by <SPAN
235 and the source for it can be found and edited in the
246 SUMMARY="Footer navigation table"
257 HREF="filter-file.html"
295 >Contacting the Developers, Bug Reporting and Feature