We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, each template override has to be explicitly configured with --overrides name=file, e.g.
--overrides name=file
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.
*.tpl
$ 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)
var.tpl
var
var=...
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:
Hi @ccremer and thanks for the nice suggestion. I'll put it on my todo-list (if you don't want to do a PR and add this excellent idea!)
Cheers, Mario :)
Sorry, something went wrong.
fixed issues and externalized default templates
ada01a9
Support for --templatedir. Fixes issue #11 and isssue #12
@ccremer I've added support for --templatedir in v0.4.0 (see release notes / README.md).
Cool, many thanks :) I'll try it out when I get some spare time.
91225cf
mariotoffia
No branches or pull requests
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: