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

Force output to string #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Force output to string #6

wants to merge 1 commit into from

Conversation

i07
Copy link

@i07 i07 commented May 11, 2017

Forcing the output to string where freemarker can see it as bool, eg. "true" or "false", forcing it to a string seems safe at the location in the template. This will solve the issue I encountered (issue #5 ). However a review might be good ;), haven't gone to all possible values that can happen at that point.

Forcing the output to string where freemarker can see it as bool, eg. "true" or "false", forcing it to a string seems safe at the location in the template. This will solve the issue I encountered (issue 8)
@saket
Copy link

saket commented Jul 18, 2017

@perwendel any updates on this?

@mschurr
Copy link

mschurr commented Jul 19, 2017

http://freemarker.org/docs/ref_builtins_boolean.html

It seems boolean?string was/is deprecated?

I think the right fix may be to set the boolean_format setting at the top of the template:
<#setting boolean_format="True,False">

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

Successfully merging this pull request may close these issues.

3 participants