diff --git a/.gitignore b/.gitignore
index b2eb862a..ba5aedb9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,7 @@
pkg/*
*.html
*.exe
-<<<<<<< HEAD
-=======
-
->>>>>>> eead24cf064976b648de5826eab51880c803b0fa
+_book
+*.epub
+*.pdf
+.DS_Store
diff --git a/.gitignore.orig b/.gitignore.orig
deleted file mode 100644
index b2eb862a..00000000
--- a/.gitignore.orig
+++ /dev/null
@@ -1,8 +0,0 @@
-*~
-pkg/*
-*.html
-*.exe
-<<<<<<< HEAD
-=======
-
->>>>>>> eead24cf064976b648de5826eab51880c803b0fa
diff --git a/README.md.orig b/README.md.orig
deleted file mode 100644
index af091edb..00000000
--- a/README.md.orig
+++ /dev/null
@@ -1,46 +0,0 @@
-# Multiple Language Versions
-<<<<<<< HEAD
-=======
-* [English](en/)
->>>>>>> eead24cf064976b648de5826eab51880c803b0fa
-* [French](fr/)
-* [Spanish](es/)
-* [中文](zh/)
-* [日本語](ja/)
-* [Turkish](tr/)
-* [Português - Brasil](pt-br/)
-* [German](de/)
-* [Русский](ru/)
-
-# Donate
-
-AliPay:
-
-English Donate:[donate](http://beego.me/donate)
-
-## Community
-QQ群:148647580
-
-BBS:[http://golanghome.com/](http://golanghome.com/)
-
-## Acknowledgments
-
- - [四月份平民](https://plus.google.com/110445767383269817959) (review代码)
- - [Hong Ruiqi](https://github.com/hongruiqi) (review代码)
- - [BianJiang](https://github.com/border) (编写go开发工具Vim和Emacs的设置)
- - [Oling Cat](https://github.com/OlingCat)(review代码)
- - [Wenlei Wu](mailto:spadesacn@gmail.com)(提供一些图片展示)
- - [polaris](https://github.com/polaris1119)(review书)
- - [雨痕](https://github.com/qyuhen)(review第二章)
-
-<<<<<<< HEAD
-=======
-Translator:
- - [LarryBattle](https://github.com/LarryBattle)
->>>>>>> eead24cf064976b648de5826eab51880c803b0fa
-## License
-Book License: [CC BY-SA 3.0 License](http://creativecommons.org/licenses/by-sa/3.0/)
-
-Code License: [BSD 3-Clause License]()
-
-
diff --git a/en/07.4.md b/en/07.4.md
index c645d7a2..8543f254 100644
--- a/en/07.4.md
+++ b/en/07.4.md
@@ -9,11 +9,11 @@ The following demonstrates the template mechanism:
Figure 7.1 Template mechanism
-Most of the content that web applications respond to clients with is static, and the dynamic parts are usually very small. For example, if you need to display a list users who have visited a page, only the user name would be dynamic. The style of the list remains the same. As you can see, templates are useful for reusing static content.
+Most of the content that web applications respond to clients with is static, and the dynamic parts are usually very small. For example, if you need to display a list users who have visited a page, only the user name would be dynamic. The style of the list remains the same. As you can see, templates are useful for reusing static content.
## Templating in Go
-In Go, we have the `template` package to help handle templates. We can use functions like `Parse`, `ParseFile` and `Execute` to load templates from plain text or files, then evaluate the dynamic parts, as shown in figure 7.1.
+In Go, we have the `template` package to help handle templates. We can use functions like `Parse`, `ParseFile` and `Execute` to load templates from plain text or files, then evaluate the dynamic parts, as shown in figure 7.1.
Example:
@@ -75,8 +75,8 @@ If you print `{{.}}` in a template, Go outputs a formatted string of this object
We know how to output a field now. What if the field is an object, and it also has its own fields? How do we print them all in one loop? We can use `{{with …}}…{{end}}` and `{{range …}}{{end}}` for exactly that purpose.
-- `{{range}}` just like range in Go.
-- `{{with}}` lets you write the same object name once and use `.` as shorthand for it ( ***Similar to `with` in VB*** ).
+- {% raw %}`{{range}}`{% endraw %} just like range in Go.
+- {% raw %}`{{with}}`{% endraw %} lets you write the same object name once and use `.` as shorthand for it ( ***Similar to `with` in VB*** ).
More examples:
@@ -305,6 +305,7 @@ Here's a complete example, supposing that we have the following three files: `he
Main template:
+{% raw %}
//header.tmpl
{{define "header"}}
@@ -330,10 +331,11 @@ Main template: