We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is an inconsistency in the whitespace generated by these two templates:
str1 <- 'header {{#query}} holla {{/query}} footer' str2 <- 'header {{#obj.query}} holla {{/obj.query}} footer'
(the only difference is that the section variable is within a list obj in the second version).
obj
This version gives what I would expect:
library(whisker) whisker.render(str1, list(query=TRUE)) # "header\nholla\nfooter" whisker.render(str1, list(query=FALSE)) # "header\nfooter"
While the second version generates extra newlines:
library(whisker) whisker.render(str2, list(obj=list(query=TRUE))) # "header\n\nholla\n\nfooter" whisker.render(str2, list(obj=list(query=FALSE))) # "header\n\nfooter"
This does not affect the version from CRAN (0.3-2).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is an inconsistency in the whitespace generated by these two templates:
(the only difference is that the section variable is within a list
obj
in the second version).This version gives what I would expect:
While the second version generates extra newlines:
This does not affect the version from CRAN (0.3-2).
The text was updated successfully, but these errors were encountered: