From 8d51cd57b1899681c2e6d1e62ebd35486d988847 Mon Sep 17 00:00:00 2001
From: "Yann Esposito (Yogsototh)" It is time to change the default css.
-Add a file named
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`:
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:
#{articleTitle article}
From 1a18ba7d5a16e5646af0082c75e6aae5f8a491c0 Mon Sep 17 00:00:00 2001
From: "Yann Esposito (Yogsototh)"
body {
@@ -442,7 +442,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}
@@ -614,7 +614,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")
@@ -702,7 +702,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`:
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:
#{articleTitle article}
diff --git a/content/html/fr/blog/Yesod-tutorial-for-newbies.md b/content/html/fr/blog/Yesod-tutorial-for-newbies.md
index 92b5ddeb7..5556eb240 100644
--- a/content/html/fr/blog/Yesod-tutorial-for-newbies.md
+++ b/content/html/fr/blog/Yesod-tutorial-for-newbies.md
@@ -338,7 +338,7 @@ If you take a look at them, the format is not %html but hamlet.
body {
@@ -443,7 +443,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}
@@ -615,7 +615,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")
@@ -703,7 +703,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}
diff --git a/output/Scratch/en/blog/Yesod-tutorial-for-newbies/index.html b/output/Scratch/en/blog/Yesod-tutorial-for-newbies/index.html
index 6ec6c6f9f..fbe80b0f4 100644
--- a/output/Scratch/en/blog/Yesod-tutorial-for-newbies/index.html
+++ b/output/Scratch/en/blog/Yesod-tutorial-for-newbies/index.html
@@ -421,7 +421,7 @@ If you take a look at them, the format is not html but h
default-layout.lucius
inside the template/
directory containing:default-layout.lucius
inside the templates/
directory containing:
@@ -530,7 +530,7 @@ getEchoR theText = doSome html (more precisely hamlet) is written directly inside our handler. We should put this part inside another file. -Create the new file
+Create the new filetemplate/echo.hamlet
containing:templates/echo.hamlet
containing:@@ -712,7 +712,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") @@ -804,7 +804,7 @@ getArticleR articleId = doThe
+Here is the content ofget404
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 oftemplate/article.hamlet
:templates/article.hamlet
:diff --git a/output/Scratch/fr/blog/Yesod-tutorial-for-newbies/index.html b/output/Scratch/fr/blog/Yesod-tutorial-for-newbies/index.html index 8d01407c9..d88782187 100644 --- a/output/Scratch/fr/blog/Yesod-tutorial-for-newbies/index.html +++ b/output/Scratch/fr/blog/Yesod-tutorial-for-newbies/index.html @@ -422,7 +422,7 @@ If you take a look at them, the format is not html but h
It is time to change the default css. -Add a file named
+Add a file nameddefault-layout.lucius
inside thetemplate/
directory containing:default-layout.lucius
inside thetemplates/
directory containing:@@ -531,7 +531,7 @@ getEchoR theText = doSome html (more precisely hamlet) is written directly inside our handler. We should put this part inside another file. -Create the new file
+Create the new filetemplate/echo.hamlet
containing:templates/echo.hamlet
containing:@@ -713,7 +713,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") @@ -805,7 +805,7 @@ getArticleR articleId = doThe
+Here is the content ofget404
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 oftemplate/article.hamlet
:templates/article.hamlet
: