Inserts HTML to show a source file which is part of the NST WUI (user can click to view).
The following parameters are recognized:
The relative path to the source file like: "cgi-bin/system/run.cgi".
If you want to display something other than the REL_FILE_PATH.
This macro inserts HTML into the page which will be DOM activated such that if the user clicks on the file name they will get to view the source code.
Example of using the macro:
@wuiSourceFile("cgi-bin/system/run.cgi") @wuiSourceFile("cgi-bin/system/run.cgi","run.cgi")
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")
@wuiSourceFile("cgi-bin/system/run.cgi") @wuiSourceFile("cgi-bin/system/run.cgi","run.cgi")
EOF
This macro is defined as:
@sourceFile("/var/www/html/nstwui/@param(0)","@fnb("@param(1)","@param(0)")")