From e32e691f8b464d744b2ee82d01d9e568a85ecfb4 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Fri, 10 Apr 2015 08:17:21 -0600 Subject: [PATCH] Remove trailing whitespaces in en/13.5.md This is to prevent the following `gitbook build` error with GitBook 2.0.1: Template render error: unexpected token: . (In file '13.5.md', Line 281, Column 10) --- en/13.5.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/en/13.5.md b/en/13.5.md index ec340c8a..fa086c64 100644 --- a/en/13.5.md +++ b/en/13.5.md @@ -22,7 +22,7 @@ Our blog's directory structure can be seen below: /delete.go /edit.go ``` - + ## Blog routing @@ -73,7 +73,6 @@ func (this *IndexController) Get() { ``` - ViewController: ``` @@ -112,9 +111,9 @@ func (this *NewController) Post() { blog.Created = time.Now() models.SaveBlog(blog) this.Ctx.Redirect(302, "/") -} -``` - +} +``` + EditController @@ -142,7 +141,7 @@ func (this *EditController) Post() { this.Ctx.Redirect(302, "/") } ``` - + DeleteController ``` @@ -155,7 +154,7 @@ func (this *DeleteController) Get() { this.Data["Post"] = models.DelBlog(id) this.Ctx.Redirect(302, "/") } -``` +``` ## Model layer @@ -237,7 +236,7 @@ layout.tpl ``` - + index.tpl ``` @@ -262,7 +261,7 @@ view.tpl {{.Post.Created}}
{{.Post.Content}} -``` +``` new.tpl @@ -276,7 +275,7 @@ Content ``` edit.tpl - + ```

Edit {{.Post.Title}}