askama/testing/tests/ui/no-block.rs
2025-03-11 19:31:06 +01:00

29 lines
619 B
Rust

use askama::Template;
#[derive(Template)]
#[template(
ext = "txt",
source = "{% block not_a %}{% endblock %}",
block = "a"
)]
struct SourceTemplate;
#[derive(Template)]
#[template(path = "no-block.txt", block = "a")]
struct PathTemplate;
#[derive(Template)]
#[template(path = "no-block-with-include.txt", block = "a")]
struct NoBlockWithInclude;
#[derive(Template)]
#[template(path = "no-block-with-include-times-2.txt", block = "a")]
struct NoBlockWithIncludeTimes2;
#[derive(Template)]
#[template(path = "no-block-with-base-template.txt", block = "a")]
struct NoBlockWithBaseTemplate;
fn main() {
}