Inserts <ENTITY ATTRS>[TEXT</ENTITY>] into output.
The following parameters are recognized:
The HTML entity to insert into the output stream.
The text to insert between the entity opening/closing tag.
The attributes to insert into the HTML entity.
This allows one to insert a HTML entity into the output in such a manner that the begin/end pairs are properly matched.
Example of using the macro:
@htmlEntity("tr",,"
@htmlEntity("th","Header")
@htmlEntity("tr","1.5","@htmlAttr("class","even")@htmlAttr("align","right")")
")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")@htmlEntity("tr",," @htmlEntity("th","Header") @htmlEntity("tr","1.5","@htmlAttr("class","even")@htmlAttr("align","right")") ")EOF
This macro is defined as:
<@param(0)@ifEqual("@param(2)",,,"@param(2)")@ifEqual("@param(1)",,">",">@param(1)")</@param(0)>