5. General Tags
To use Weave for general mark up you must begin your script
with the magic comment
-- nostyle
If this comment is omitted Weave will load in the HTML style
wich defines the HTML tags and the TITLE, BODY, HEAD and ATTR
properties, as well as the keywords REM, SPACE and TEXT. Without
these you must assign a rope to the DOC property of your document:
mydoc = BEGIN(pathname,filetype) ;
mydoc.DOC = myrope ;
END(mydoc) ;
You can create the four kinds of tag for the name foo with the tagifier operations
`.foo without end-tag, without attributes
?.foo without end-tag, with attributes
!.foo with end-tag, without attributes
?!.foo with end-tag, with attributes
The variants ?`.foo and ?`!.foo take a rope as their first variable rather than a list of
attributes. So, for example
?`!.TD [[align=left]]
is equivalent to the HTML style
TD_ { align = [[left]]; }
|
|
|