# Sprig Functions for Tera Template Engine [Sprig][Sprig] is a list of tempalte functions for Go tempaltes. This project transplant [Sprig] to [Tera] template language. [Sprig]: http://masterminds.github.io/sprig [Tera]: https://keats.github.io/tera ## Strings ### Built-ins - [x] trim - builtin - [ ] trimAll(substr) - [ ] trimSuffix(suffix) - [ ] trimPrefix(prefix) - [ ] upper - [ ] lower - [ ] title - [ ] untitle - [ ] repeat(count) - [ ] substr(start, len) - [x] nospace - [ ] trunc(len) - [x] abbrev(len) - [ ] abbrevboth(left, maxlen) - [ ] initials - [ ] randAlphaNum(len) - [ ] randAlpha(len) - [ ] randNumeric(len) - [ ] randAscii(len) - [ ] wrap(len) - [ ] wrapWith(len, sep) - [ ] contains(substr) - [ ] hasPrefix(prefix) - [ ] hasSuffix(suffix) - [ ] quote - [ ] squote - [ ] cat - [ ] indent(len) - [ ] nindent(len) - [ ] replace(from, to) - [ ] plural(one, more) - [x] snakecase - [x] camelcase - [x] kebabcase - [ ] swapcase - [ ] shuffle - [ ] regexMatch - [ ] mustRegexMatch - [ ] regexFindAll - [ ] mustRegexFindAll - [ ] regexFind - [ ] mustRegexFind - [ ] regexReplaceAll - [ ] mustRegexReplaceAll - [ ] regexReplaceAllLiteral - [ ] mustRegexReplaceAllLiteral - [ ] regexSplit - [ ] mustRegexSplit - [ ] regexQuoteMeta ## String Slice Functions - [ ] join - [ ] splitList - [ ] split - [ ] splitn - [ ] sortAlpha ## Integer Math Functions - [ ] add - [ ] add1 - [ ] sub - [ ] div - [ ] mod - [ ] mul - [ ] max - [ ] min - [ ] floor - [ ] ceil - [ ] round - [ ] randint