Insert a example bitmap (with optional title) into the document.
The following parameters are recognized:
The image to appear in the document.
An optional title for the image (appears on page).
Example of using the macro:
@fileNameFormat("/etc/hosts") @fileNameFormat("/var/log/messages","@htmlAttr("title","File containing system messages")
Assuming the com.ccg.macros.at.All
class is within your CLASSPATH
and the
config/html.at
macros file has been
generated (Hint: run make atmacros in the
wui
directory), a developer should be able to
run the above example by copy/pasting from below:
[root@probe root]#
java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")
@fileNameFormat("/etc/hosts") @fileNameFormat("/var/log/messages","@htmlAttr("title","File containing system messages")
EOF
This macro is defined as:
@ifEqual("@param(3)",,," <div @htmlAttr("class","exampleImageTitle")>@param(3)</div> ")<img @htmlAttr("src","@param(0)") @htmlAttr("class","exampleImage") @htmlAttr("width","@param(1)") @htmlAttr("height","@param(2)") alt=\"\" />