Skip to content
New issue

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

Rendered content output to stdout twice #393

Closed
salotz opened this issue Aug 12, 2020 · 1 comment
Closed

Rendered content output to stdout twice #393

salotz opened this issue Aug 12, 2020 · 1 comment

Comments

@salotz
Copy link
Contributor

salotz commented Aug 12, 2020

This only happens when the template is coming from a file. For instance this works as intended:

--> HELLO="hello there" moban "Here is my greeting: {{HELLO}}"
Here is my greeting: hello there

But if you are getting it from a file for example template.txt.jj2:

{{HELLO}}

where data.yaml is:

HELLO: "hello there"

These result:

--> moban -c data.yaml -t example.txt.jj2
hello there
hello there

--> HELLO="hello there" moban -t example.txt.jj2
hello there
hello there

I have a fix, just prepping the PR.

@chfw
Copy link
Member

chfw commented Aug 13, 2020

yep, well spotted. I look forward to your update.

chfw added a commit that referenced this issue Aug 15, 2020
@chfw chfw closed this as completed in be6c38f Aug 15, 2020
@chfw chfw mentioned this issue Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants