diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-03-18 10:26:47 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-03-18 10:26:47 +0100 |
commit | 9a12888da65c8a0348634011f496e656ac7e5d8f (patch) | |
tree | a2895b2d1dfad38c81685795134139cf2696d527 | |
parent | 37fb230e2e9aa4d9993a7c5774e48a8f6d87a294 (diff) | |
download | askama-9a12888da65c8a0348634011f496e656ac7e5d8f.tar.gz askama-9a12888da65c8a0348634011f496e656ac7e5d8f.tar.bz2 askama-9a12888da65c8a0348634011f496e656ac7e5d8f.zip |
Move small templates into source code
-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, |