From 8d51cd57b1899681c2e6d1e62ebd35486d988847 Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Fri, 20 Jan 2012 16:31:33 +0100 Subject: [PATCH] Fixed template -> templates --- multi/blog/Yesod-tutorial-for-newbies.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multi/blog/Yesod-tutorial-for-newbies.md b/multi/blog/Yesod-tutorial-for-newbies.md index 123650e55..53e0aa62d 100644 --- a/multi/blog/Yesod-tutorial-for-newbies.md +++ b/multi/blog/Yesod-tutorial-for-newbies.md @@ -343,7 +343,7 @@ If you take a look at them, the format is not %html but hamlet. It is time to change the default %css. -Add a file named `default-layout.lucius` inside the `template/` directory containing: +Add a file named `default-layout.lucius` inside the `templates/` directory containing: body { @@ -448,7 +448,7 @@ getEchoR theText = do Some %html (more precisely hamlet) is written directly inside our handler. We should put this part inside another file. -Create the new file `template/echo.hamlet` containing: +Create the new file `templates/echo.hamlet` containing:

#{theText} @@ -620,7 +620,7 @@ getBlogR = do -- Get the list of articles inside the database. articles <- runDB $ selectList [] [Desc ArticleTitle] -- We'll need the two "objects": articleWidget and enctype - -- to construct the form (see template/articles.hamlet). + -- to construct the form (see templates/articles.hamlet). ((_,articleWidget), enctype) <- generateFormPost entryForm defaultLayout $ do $(widgetFile "articles") @@ -708,7 +708,7 @@ getArticleR articleId = do The `get404` function try to do a get on the DB. If it fails it return a 404 page. The rest should be clear. -Here is the content of `template/article.hamlet`: +Here is the content of `templates/article.hamlet`:

#{articleTitle article}