diff options
Diffstat (limited to '')
-rw-r--r-- | testing/tests/ui/extends.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/tests/ui/extends.rs b/testing/tests/ui/extends.rs new file mode 100644 index 0000000..55c8b56 --- /dev/null +++ b/testing/tests/ui/extends.rs @@ -0,0 +1,18 @@ +use askama::Template; + +#[derive(Template)] +#[template( + source = r#"{%- extends "whatever.html" %}"#, + ext = "html" +)] +struct ExtendsPre; + +#[derive(Template)] +#[template( + source = r#"{% extends "whatever.html" -%}"#, + ext = "html" +)] +struct ExtendsPost; + +fn main() { +} |