Skip to content

Extension org.gramar.base Tag stringTokens

chrisgerken edited this page Sep 14, 2015 · 2 revisions

stringTokens Tag

The stringTokens tag Parses a string into tokens and iterates over the tokens.

  • string string - (required) The string to be parsed
  • string var - (required) The name of a context variable to be associated with the current token in the iteration. The variable is scoped to the body of the tag.
  • string delimeter - A string to be written after every node except the last
  • string delimetedBy - The delimiter that separates the tokens in the original string
  • boolean reverse - True if the list of tokens is to be iterated in reverse order

Usage and examples

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

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

Return to org.gramar.base

Clone this wiki locally