Stop Software Patents!
Free Software Area

Documentation: Include File wml::std::tags

     Introduction     Frontends     Backends     Includes     Auxilliaries     

wml::std::tags - Standard Support Tags


wml::std::tags - Standard Support Tags


 <ifdef varname thenval elseval>
 <perl> ... </perl>
 <say> ... </say>
 <m4> ... </m4>
 <symbol name value>
 <symbol name undef>
 <dump NAME>
 <enter NAME> ... <leave>
 <divert NAME> ... </divert>
 <asubst ...> ... </asubst>
 <javascript [version=..] [language=..]
             [type=..] [src=...] [defer] [nohead] [nolang]>


This include file defines some standard support tags one needs all the time. All tags are self-explanatory and briefly mentioned in wml_intro(1), except the last two which are described below.


This tag was primarily a shorthand for <script type="text/javascript" language="JavaScript"E<gt> but it has evolved. If the <head> tag is defined and is a complex macro, e.g. when calling wml::std::page, then Javascript code is automatically passed to this macro and should be diverted to the HEAD section of HTML documents. This diversion preserve lang slices in multi-lingual documents. Those features may be disabled by the ``nohead'' and ``nolang'' attributes.


WML tries to print information on input file and line numbers when warnings or errors are reported in passes 2 and 3. Some special sentences containing file names and line numbers are inserted during pass 1. So pass 2 have an accurate knowledge of where warnings appear in input file. But it also filters it without preserving lines, so after pass 2 information is almost unusable. By putting <sync-lines> in input file, it forces pass 2 to resynchronize information on line numbers. So for debugging pass 3, it could be of some help to insert <sync-lines> before ePerl code.


 Ralf S. Engelschall
 Denis Barbier


 Internal: P1, P2, P3, P4, P6
 External: --