Closed daamien closed 4 years ago
@DigitalTravelDuck:
Yes can use the --metadata
(or -M
) option to modify the mustache
parameter directly from the command line:
Here's a basic exemple:
$ alias pandocker='docker run --rm -v `pwd`:/pandoc dalibo/pandocker'
$ echo "Hello, {{x}} !" > hello.md
$ echo "x: World" > world.yml
$ pandocker -i hello.md --filter pandoc-mustache -M mustache=world.yml
<p>Hello, World !</p>
And just change the mustache variable to point to another YAML file
$ echo "x: Arnold" > arnold.yml
$ pandocker -i hello.md --filter pandoc-mustache -M mustache=arnold.yml
<p>Hello, Arnold !</p>
Thanks, works great. Greetings, Arnold.
On Thu, 23 Jan 2020, 22:50 damien clochard, notifications@github.com wrote:
@DigitalTravelDuck https://github.com/DigitalTravelDuck:
Yes can use the --metadata (or -M) option to modify the mustache parameter directly from the command line:
Here's a basic exemple:
$ alias pandocker='docker run --rm -v
pwd
:/pandoc dalibo/pandocker' $ echo "Hello, {{x}} !" > hello.md $ echo "x: World" > world.yml $ pandocker -i hello.md --filter pandoc-mustache -M mustache=world.ymlHello, World !
And just change the mustache variable to point to another YAML file
$ echo "x: Arnold" > arnold.yml $ pandocker -i hello.md --filter pandoc-mustache -M mustache=arnold.yml
Hello, Arnold !
options direct
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dalibo/pandocker/issues/144?email_source=notifications&email_token=ANK6JHHVX3BDPIUJWDT3XOLQ7IGKFA5CNFSM4KK5IBQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJY7J2Y#issuecomment-577893611, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANK6JHGWQO36NQA5KRE5UGDQ7IGKFANCNFSM4KK5IBQQ .
Question from @DigitalTravelDuck posted at https://github.com/dalibo/pandocker/issues/141#issuecomment-577839253