Inserts HTML to view contents of any source file in NST source code repository (user can click to view).
The following parameters are recognized:
The relative file path within a NST checkout like: "include/data/packages.tsv".
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 using the current on-line source code repository viewer.
Example of using the macro:
@svnSourceFile("wui/php/system/ShowSource.php")
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")
@svnSourceFile("wui/php/system/ShowSource.php")
EOF
This macro is defined as:
@svnSourceFile("@param(0)","@param(1)")