Wraps NST header and footer around external page using a iframe entity.
The following parameters are recognized:
The title for the page.
The URL of the source page to embed with a iframe.
The source of the HTML within the NST tree (relative to the wui directory).
Optional header code in javascript. Typically a section header for page.
This macro is used to create "one line" NST WUI pages that simply "wrap" a URL external to the NST WUI inside a NST WUI header/banner. See the wui/cgi-bin/networking/scatter.html page for an example.
Example of using the macro:
@wuiIframePage("@htmlEscape("Backscatter & Open Relay Multi-Tool")","/relaycheck/scatter.html","cgi-bin/networking/relaycheck.html")
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")
@wuiIframePage("@htmlEscape("Backscatter & Open Relay Multi-Tool")","/relaycheck/scatter.html","cgi-bin/networking/relaycheck.html")
EOF
This macro is defined as:
@headBegin("@param(0)","xml","@nstWuiRootDir()/@param(2)") @headEnd() @bodyBegin() @javascriptBegin() @param(3) NstWui.iframePage("@param(1)") @javascriptEnd() @bodyEnd()