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

Is possible to keep unused variables? #184

Open
29antonioac opened this issue Apr 1, 2016 · 1 comment
Open

Is possible to keep unused variables? #184

29antonioac opened this issue Apr 1, 2016 · 1 comment

Comments

@29antonioac
Copy link

Hi! I'm using pystache from yesterday to create LaTeX tables with some results. It works very well but I have a doubt. Is there a posibility that the renderer keep the unused variables in the output instead of make it empty?

For example:

* {{tag1}}
* {{tag2}}
{ "tag1" : 2 }

Them produce this output

* 2
* 

It could be produce this output instead? In this case, how could I do that?

* 2
* {{tag2}}

Thank you!

@iblancasa
Copy link

It is easy!
You only have to insert

{ "tag1" : 2,
"tag2" : "{{tag2}}"
}

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