1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

misc/goplay: another template fix

Fixes #2219.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4950063
This commit is contained in:
Andrew Gerrand 2011-09-05 15:03:41 +10:00
parent 4e7250db12
commit 740805fdb1

View File

@ -145,7 +145,7 @@ func run(cmd ...string) ([]byte, os.Error) {
var frontPage = template.Must(template.New("frontPage").Parse(frontPageText)) // HTML template
var output = template.Must(template.New("output").Parse(outputText)) // HTML template
var outputText = `<pre>{{html .}}</pre>`
var outputText = `<pre>{{printf "%s" . |html}}</pre>`
var frontPageText = `<!doctype html>
<html>