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
Eg 1:
(clostache.parser/render "{{Currency}} {{Price}}" {:Currency "$" :Price 230})
Output:
"\\$ 230"
Expected:
"$ 230"
Eg 2:
(clostache.parser/render "{{Currency}} {{Price}}" {:Currency "USD$" :Price 230})
"USD\\$ 230"
"USD$ 230"
The text was updated successfully, but these errors were encountered:
This worked with {{&}} and {{{}}}
(clostache.parser/render "{{&Currency}} {{Price}}" {:Currency "$" :Price 230})
Sorry, something went wrong.
Sorry, suffered a brain freeze, had some extra code that was making it work
(-> (clostache.parser/render "{{Currency}} {{Price}}" {:Currency "USD$" :Price 230}) (clojure.string/replace #"\\" ""))
That's the around. Thankfully no other "" characters are there in my template. Reopening
Another, better workaround
(clostache.parser/render "{{#CurrencyFn}}{{/CurrencyFn}} {{Price}}" {:Currency "USD$" :Price 230 :CurrencyFn #(str "$"%)})
No branches or pull requests
Eg 1:
(clostache.parser/render "{{Currency}} {{Price}}" {:Currency "$" :Price 230})
Output:
"\\$ 230"
Expected:
"$ 230"
Eg 2:
(clostache.parser/render "{{Currency}} {{Price}}" {:Currency "USD$" :Price 230})
Output:
"USD\\$ 230"
Expected:
"USD$ 230"
The text was updated successfully, but these errors were encountered: