diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-10-23 13:32:37 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-10-23 15:13:27 +0200 |
commit | a7f5186bf49ef20010c2eae7717b3a738a3b548e (patch) | |
tree | dcc1d87b4ba2b916706739f85e505062cb73303d /testing/tests/ui/name_mismatch_endblock.rs | |
parent | 5ee2dfbe6bf901c7c731e9b94ba92b82f09e9101 (diff) | |
download | askama-a7f5186bf49ef20010c2eae7717b3a738a3b548e.tar.gz askama-a7f5186bf49ef20010c2eae7717b3a738a3b548e.tar.bz2 askama-a7f5186bf49ef20010c2eae7717b3a738a3b548e.zip |
Add test specifically for named blocks, and named macros
Diffstat (limited to 'testing/tests/ui/name_mismatch_endblock.rs')
-rw-r--r-- | testing/tests/ui/name_mismatch_endblock.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/tests/ui/name_mismatch_endblock.rs b/testing/tests/ui/name_mismatch_endblock.rs new file mode 100644 index 0000000..9fbfbe4 --- /dev/null +++ b/testing/tests/ui/name_mismatch_endblock.rs @@ -0,0 +1,8 @@ +use askama::Template; + +#[derive(Template)] +#[template(source = "{% block foo %}{% endblock not_foo %}", ext = "html")] +struct NameMismatchEndBlock; + +fn main() { +} |