Skip to content

Force output to string#6

Open
i07 wants to merge 1 commit intoperwendel:masterfrom
i07:Issue-8
Open

Force output to string#6
i07 wants to merge 1 commit intoperwendel:masterfrom
i07:Issue-8

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