Spinner has support for making macros. This is for example useful for making site wide defines for example titles or menuitems, thus making it easier to create pages, not to mention changing the whole layout. Note that it's not (yet?) possible to make a define in a define, and using <insert name=foo> may give strange results.


<define></define> -- Define a macro to be used by <insert> later on.

Attributes

Example:

<define name=1>This is macro number one</define>


<insert> -- Insert a macro or a file

Attributes

Example <define name=foo>This is a foo</define>:

<insert name=foo>
Result: This is a foo

<insert name=foo foo=cat>
Result: This is a cat

<insert name=foo a=the foo="green door.">
Result: This is the green door.

<insert name=foo a=some foo=cats is=are>
Result: Thare are some cats <- Notice!

<insert file=/includes>
Result: The contents of the file '/include' is inserted here. This is very useful for making sitewide defines (like heads, titles etc), used in all files in a server, thus simplifying the making of the code alot. To make this documentation, two defines (included from a file) are used:
<define name=head>
<html><head><title>titel</title></head>
<body bgcolor="#C0C0C0" text="#000000" link="#0030aa" vlink="70007a"
	background=img/background.gif>
<h1 align=center><img align=left src=img/spinner2.gif alt=""><hr noshade>
<allow referer><a href=<referer>><img src=img/back.gif align=right
	 alt=" [Back] " border=0></a></allow>
titel</h1>
<br clear>
</define>

<define name=end>
<br clear=all>
<p align=center><a href="img/ulpc-inside.gif">
<img align=right src=img/ulpc-inside_small.gif alt="" border=0></a>
<hr noshade>
<allow referer><a href=<referer>><img src=img/back.gif align=left
	 alt=" [Back] " border=0></a></allow>
<!-- flerp -->
</body></html>
</define>