From 9a12888da65c8a0348634011f496e656ac7e5d8f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 18 Mar 2019 10:26:47 +0100 Subject: Move small templates into source code --- testing/tests/render_in_place.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/tests/render_in_place.rs') diff --git a/testing/tests/render_in_place.rs b/testing/tests/render_in_place.rs index 3d1b91e..f20e775 100644 --- a/testing/tests/render_in_place.rs +++ b/testing/tests/render_in_place.rs @@ -8,14 +8,14 @@ struct RenderInPlace<'a> { } #[derive(Template)] -#[template(path = "render_in_place_sec1.html")] +#[template(source = "A={{ a }}\nB={{ b }}", ext = "html")] struct SectionOne<'a> { a: &'a str, b: &'a str, } #[derive(Template)] -#[template(path = "render_in_place_sec2.html")] +#[template(source = "C={{ c }}\nD={{ d }}", ext = "html")] struct SectionTwo<'a> { c: &'a str, d: &'a str, -- cgit