User Tools

Site Tools


tag:index

Extension org.gramar.base contains the core set of Gramar tags and functions

Usage and Configuration

Place a <taglib> element within the <taglibs> element in the gramar.config file in the root of your gramar:

  <taglibs>
      <taglib  prefix="c" extension="org.gramar.base" />
  </taglibs>
  

Tags

The org.gramar.base extension provides the following production markup tags

* Extension-org.gramar.base-Tag-iterate - Iterates over a collection of nodes. * Extension-org.gramar.base-Tag-loadContent - parses the content of the tag into a secondary DOM. * Extension-org.gramar.base-Tag-milliseconds - resolves to the current epoch time in milliseconds. * Extension-org.gramar.base-Tag-otherwise - provides a “last-resort” case for a containing choose tag. If no when tags in that choose tag test true, the contents of the otherwise tag become the processing result of the choose tag. * Extension-org.gramar.base-Tag-project - creates a new project with the given name if that project does not already exist. * Extension-org.gramar.base-Tag-RemoveElemet - adds a node from the model. * Extension-org.gramar.base-Tag-set - Sets the value of an attribute on a given node to the resolved content of the tag. * Extension-org.gramar.base-Tag-setVariable - Sets a context variable to the resolved value of an XPath expression. * Extension-org.gramar.base-Tag-stringTokens - Parses a string into tokens and iterates over the tokens. * Extension-org.gramar.base-Tag-userRegion - scopes a region of template processing that might be modified by the user after generation and should therefore be kept (not overwritten on subsequent gramar invocations). * Extension-org.gramar.base-Tag-when - acts as a single case clause for a containing choose tag. Within a choose tag's scope, the first when tag to test true will become the processing result of the entire choose tag.

XPath functions

The org.gramar.base extension provides the following custom Path functions

Return to Extension-org.gramar.base

tag/index.txt · Last modified: 2016/06/26 16:02 by chrisgerken