Structure template folder

Move errors to their own folder
This commit is contained in:
Magnus Hoff 2017-10-13 15:36:22 +02:00
parent 3715f9de64
commit f2de8111c9
3 changed files with 4 additions and 4 deletions

View file

@ -26,11 +26,11 @@ pub struct Layout<'a, T: 'a + fmt::Display> {
} }
#[derive(BartDisplay)] #[derive(BartDisplay)]
#[template = "templates/404.html"] #[template = "templates/error/404.html"]
struct NotFound; struct NotFound;
#[derive(BartDisplay)] #[derive(BartDisplay)]
#[template = "templates/500.html"] #[template = "templates/error/500.html"]
struct InternalServerError; struct InternalServerError;
pub struct Site { pub struct Site {

View file

@ -8,4 +8,4 @@
</article> </article>
</div> </div>
{{>footer/default.html}} {{>../footer/default.html}}

View file

@ -8,4 +8,4 @@
</article> </article>
</div> </div>
{{>footer/default.html}} {{>../footer/default.html}}