Closed iainlane closed 2 years ago
we have our own function library that was extracted from the hugo library that we use for across many Drone repositories. I would therefore recommend bringing drone/funcmap into this repository.
I'll take a look when I get a moment, thanks. From a quick glance I don't see indent
which is what I'm currently using from sprig
. So I'll have to first do a PR to funcmap
to add that.
Alright, I've done as requested. This depends on https://github.com/drone/funcmap/pull/2.
Note that I need to have Funcs
rather than SafeFuncs
as we're fetching from the environment and env
is not safe by funcmap's definition.
It's good to have some common useful functions available. In particular I wanted to use
nindent
to include a viawrite_files
.