This shows you the differences between two versions of the page.
org.gramar.base:tag.stringtokens [2016/06/26 17:04] 127.0.0.1 external edit |
org.gramar.base:tag.stringtokens [2016/06/27 20:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
- | ==== stringTokens Tag ==== | ||
- | |||
- | The stringTokens tag Parses a string into tokens and iterates over the tokens. | ||
- | |||
- | |||
- | <**c:stringTokens** **string**="" **var**="" **delimeter**="" **delimetedBy**="" **reverse**="" > | ||
- | |||
- | ^ Attribute ^ Kind ^ Required ^ Purpose ^ | ||
- | |**string** |string |yes |The string to be parsed | | ||
- | |**var** |string |yes |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. | | ||
- | |**delimeter** |string |no |A string to be written after every node except the last | | ||
- | |**delimetedBy** |string |no |The delimiter that separates the tokens in the original string | | ||
- | |**reverse** |boolean |no |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:index|index]] | ||
- | |||
- | |||