mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
commit
70b1983a03
@ -21,7 +21,7 @@ pub(crate) struct Config {
|
|||||||
pub(crate) default_syntax: &'static str,
|
pub(crate) default_syntax: &'static str,
|
||||||
pub(crate) escapers: Vec<(Vec<Cow<'static, str>>, Cow<'static, str>)>,
|
pub(crate) escapers: Vec<(Vec<Cow<'static, str>>, Cow<'static, str>)>,
|
||||||
pub(crate) whitespace: WhitespaceHandling,
|
pub(crate) whitespace: WhitespaceHandling,
|
||||||
// `Config` is self referencial and `_key` owns it data, so it must come last
|
// `Config` is self referential and `_key` owns it data, so it must come last
|
||||||
_key: OwnedConfigKey,
|
_key: OwnedConfigKey,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -753,7 +753,7 @@ fn filter<'a>(
|
|||||||
))(j)
|
))(j)
|
||||||
} else {
|
} else {
|
||||||
Err(nom::Err::Failure(ErrorContext::new(
|
Err(nom::Err::Failure(ErrorContext::new(
|
||||||
"the filter operator `|` must not be preceeded by any whitespace characters\n\
|
"the filter operator `|` must not be preceded by any whitespace characters\n\
|
||||||
the binary OR operator is called `bitor` in rinja",
|
the binary OR operator is called `bitor` in rinja",
|
||||||
i,
|
i,
|
||||||
)))
|
)))
|
||||||
|
@ -8,7 +8,7 @@ error: the binary AND operator is called `bitand` in rinja
|
|||||||
|
|
|
|
||||||
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: the filter operator `|` must not be preceeded by any whitespace characters
|
error: the filter operator `|` must not be preceded by any whitespace characters
|
||||||
the binary OR operator is called `bitor` in rinja
|
the binary OR operator is called `bitor` in rinja
|
||||||
failed to parse template source at row 1, column 4 near:
|
failed to parse template source at row 1, column 4 near:
|
||||||
" | b }}"
|
" | b }}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
error: the filter operator `|` must not be preceeded by any whitespace characters
|
error: the filter operator `|` must not be preceded by any whitespace characters
|
||||||
the binary OR operator is called `bitor` in rinja
|
the binary OR operator is called `bitor` in rinja
|
||||||
failed to parse template source at row 1, column 3 near:
|
failed to parse template source at row 1, column 3 near:
|
||||||
" |lower}}"
|
" |lower}}"
|
||||||
@ -9,7 +9,7 @@ error: the filter operator `|` must not be preceeded by any whitespace character
|
|||||||
|
|
|
|
||||||
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
error: the filter operator `|` must not be preceeded by any whitespace characters
|
error: the filter operator `|` must not be preceded by any whitespace characters
|
||||||
the binary OR operator is called `bitor` in rinja
|
the binary OR operator is called `bitor` in rinja
|
||||||
failed to parse template source at row 1, column 3 near:
|
failed to parse template source at row 1, column 3 near:
|
||||||
" | lower}}"
|
" | lower}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user