Open mdreizin opened 6 years ago
Currently compile_format doesn't have any template functions:
compile_format
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:
Path
Name
Dir
Base
Ext
Locale
EXAMPLE:
EXAMPLE
Please see https://github.com/Fitbit/smartling/blob/master/model/project_resource.go#L35
Thanks for feedback. It makes sense and we will schedule this improvement.
Is this being considered?
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:
Path
- original file pathName
- original file name without extensionDir
- original file directory pathBase
- original file name with extensionExt
- original file extensionLocale
- project locale code valueEXAMPLE
:Please see https://github.com/Fitbit/smartling/blob/master/model/project_resource.go#L35