From 8a25a1ee65031a687ad7d208eaa2843aed6c9752 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 22 Jul 2018 14:59:56 +0100 Subject: Add Template method to return template extension Thanks to Ryan McGrath for the suggestion and initial implementation. --- testing/tests/simple.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'testing/tests/simple.rs') 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)] -- cgit