Core Tag Handlers
hoglet, in it's default deployment, comes with a number of core handlers that perform specific tasks. A handler is an arbitrary piece of Java code that implements the org.hoglet.handlers.core.TagHandler interface.
They are:
Each of the handlers above implement the JDOMInitable which means that they can be initialised using a JDOM org.jdom.Element. See: XML Configured Processor for more details.
They are:
Class | Purpose | Suggested Tag | Thread Safe |
Text Handler | Allows the content of a tag to be wrapped in a text template (usually HTML). | Any | Yes |
Code Handler | Allows source code to be formatted and keywords for the relevant language to be highlighted, also supports outputting of line numbers. | Any - should be name of language, i.e. java, c, perl etc. | Yes |
Link Handler | Allows a link to be included. | link | Yes |
JavaDoc Handler | Allows a link to a Javadoc reference to be included. | javadoc | Yes |
XML Handler | Allows a chunk of valid XML to be formatted and highlighted. | xml | Yes |
Table Row Handler | Allows a row of a table to be generated. | tr | Yes |
Hoglet Handler | Allows hoglet tags to be formatted and highlighted. | hoglet | Yes |