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
When using {{ '\'' }}, the following error is thrown:
{{ '\'' }}
called `Result::unwrap()` on an `Err` value: Error { kind: BadEscape, detail: None, name: Some("concat.txt"), lineno: 2, source: None }
(Ignore the test file, I initially thought it might be a concat issue, it's not.
let mut env = Environment::new(); env.add_template("escape", "{{ '\'' }}").unwrap();
Additional helpful information:
It escaped.
It's handy to do things like this:
{% set result = run_query('select add_months(\''~ start_month ~ '-01\'::date, 11)::date') %}
Though you should use " ;).
{% set result = run_query("select add_months('"~ start_month ~ "'-01'::date, 11)::date") %}
I'm looking into this, just thought I should raise it 👍
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
When using
{{ '\'' }}
, the following error is thrown:(Ignore the test file, I initially thought it might be a concat issue, it's not.
Reproduction steps
Additional helpful information:
What did you expect
It escaped.
It's handy to do things like this:
Though you should use " ;).
I'm looking into this, just thought I should raise it 👍
The text was updated successfully, but these errors were encountered: