diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-22 14:59:56 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-07-22 14:59:56 +0100 |
commit | 8a25a1ee65031a687ad7d208eaa2843aed6c9752 (patch) | |
tree | 83e16e2662a3182ea94989d436e9752d2ca54bdb /testing | |
parent | ed98793b506c66723c713991f40c0065557a35d5 (diff) | |
download | askama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.tar.gz askama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.tar.bz2 askama-8a25a1ee65031a687ad7d208eaa2843aed6c9752.zip |
Add Template method to return template extension
Thanks to Ryan McGrath for the suggestion and initial implementation.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tests/simple.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs index 95c14b1..4af2cea 100644 --- a/testing/tests/simple.rs +++ b/testing/tests/simple.rs @@ -27,6 +27,7 @@ fn test_variables() { Iñtërnâtiônàlizætiøn is important\n\ in vars too: Iñtërnâtiônàlizætiøn" ); + assert_eq!(s.extension(), Some("html")); } #[derive(Template)] |