diff options
-rw-r--r-- | testing/templates/render_in_place_sec1.html | 2 | ||||
-rw-r--r-- | testing/templates/render_in_place_sec2.html | 2 | ||||
-rw-r--r-- | testing/tests/render_in_place.rs | 4 |
3 files changed, 2 insertions, 6 deletions
diff --git a/testing/templates/render_in_place_sec1.html b/testing/templates/render_in_place_sec1.html deleted file mode 100644 index 75f9fd6..0000000 --- a/testing/templates/render_in_place_sec1.html +++ /dev/null @@ -1,2 +0,0 @@ -A={{ a }} -B={{ b }} diff --git a/testing/templates/render_in_place_sec2.html b/testing/templates/render_in_place_sec2.html deleted file mode 100644 index 2a0ae21..0000000 --- a/testing/templates/render_in_place_sec2.html +++ /dev/null @@ -1,2 +0,0 @@ -C={{ c }} -D={{ d }} 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, |