This commit is contained in:
Unknown
2013-06-22 21:29:42 +08:00
parent fac2467441
commit 67be80ca8c
120 changed files with 506 additions and 7307 deletions

View File

@@ -1,20 +0,0 @@
// template_with_end.go
package main
import (
"os"
"text/template"
)
func main() {
t := template.New("test")
t, _ = t.Parse("{{with `hello`}}{{.}}{{end}}!\n")
t.Execute(os.Stdout, nil)
t, _ = t.Parse("{{with `hello`}}{{.}} {{with `Mary`}}{{.}}{{end}}{{end}}!\n")
t.Execute(os.Stdout, nil)
}
/* Output:
hello!
hello Mary!
*/