You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, each template override has to be explicitly configured with --overrides name=file, e.g.
go run github.com/mariotoffia/goasciidoc -o godoc.adoc -r import=docs/godoc-templates/import.tpl -r var=docs/godoc-templates/var.tpl
But it would be helpful if we can specify a template directory, and use the file basename as the name for *.tpl files, e.g.
$ ls docs/godoc-templates
import.tpl var.tpl
A file named var.tpl would provide a name for the var template (compare with var=... above)
go run github.com/mariotoffia/goasciidoc -o godoc.adoc --template-dir docs/godoc-templates
at the moment, I have to construct each individual argument like this:
$ for file in $(find docs/godoc-templates/*.tpl); do name="$(basename ${file%.*})" && printf "%s %s=%s" '-r' $name $file; done && printf '\n'
-r import=docs/godoc-templates/import.tpl -r var=docs/godoc-templates/var.tpl
which works, but isn't exactly pretty
The text was updated successfully, but these errors were encountered:
Currently, each template override has to be explicitly configured with
--overrides name=file
, e.g.But it would be helpful if we can specify a template directory, and use the file basename as the name for
*.tpl
files, e.g.A file named
var.tpl
would provide a name for thevar
template (compare withvar=...
above)at the moment, I have to construct each individual argument like this:
which works, but isn't exactly pretty
The text was updated successfully, but these errors were encountered: