Releases: caltechlibrary/tmplfn
Citation updates
Removed Blackfriday, Blue Monday and Markdown support
I never used the Markdown support in templates in practice. This is an unnecessary dependency in light of the fact that Markdown work is migrating from Blackfriday to Gomarkdown and Mmarkdown.
Updated blackfriday markdown processor support
In this release blackfriday markdown parser package is not using a forked version at Caltech Library. This is track v2 of the package from master rather than manually have to pull the git repo, switch branches or rely on the stale gopkg reference.
Go module support
Added Go module support.
Initial Release
This package provides extended text/template functionality to Caltech Library's go packages and programs requiring template support.
number improvements
Re-organized functions across Time, Math, Strings, Page, Iterations, and Dotpath.
Added AllFuncs() method to pull in app the mappings easily.
Added tmplfn/numbers with a simplified number rationalization while supporting Go's int and float types plus json.Number.
Added a Makefile to make it easily to test both tmplfn and tmplfn/numbers.
Reorganizing, adding Function Maps
- Reorganizing functions in various Maps
- Added DotpathMap
- Added IterationMap
Functions that would return errors in Go have last argument of default values that can be returned.
refining functions
- renamed atList to join
- removed stringJoin as redundant
- added forIntegers that returns an array of ints from a start, end and inc value
template source maps and template maps
Added function to take a map of template sources and return a map of source names and templates.