Smartling / smartling-cli

Smartling-cli is a library and CLI tool for managing Smartling projects. See the project's Wiki for user documentation.
https://github.com/Smartling/smartling-cli/wiki
MIT License
16 stars 12 forks source link

feat: add more custom template functions and predefined template variables #43

Open mdreizin opened 6 years ago

mdreizin commented 6 years ago

Currently compile_format doesn't have any template functions:

https://github.com/Smartling/smartling-cli/blob/master/compile_format.go#L38

It would be nice to have some useful ones:

https://github.com/Masterminds/sprig

In addition, it would be nice to have some predefined template variables:

EXAMPLE:

Please see https://github.com/Fitbit/smartling/blob/master/model/project_resource.go#L35

dimitrystd commented 6 years ago

Thanks for feedback. It makes sense and we will schedule this improvement.

xzyfer commented 5 years ago

Is this being considered?