From 04b08da9af0c450d645ab7389d1467308cfc2db8 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 4 Mar 2013 21:27:36 +0100 Subject: Imported Upstream version 1.1~hg20130304 --- lib/godoc/example.html | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'lib/godoc/example.html') diff --git a/lib/godoc/example.html b/lib/godoc/example.html index ede31d61f..cda2a8491 100644 --- a/lib/godoc/example.html +++ b/lib/godoc/example.html @@ -5,11 +5,24 @@

Example{{example_suffix .Name}}

{{with .Doc}}

{{html .}}

{{end}} -

Code:

-
{{.Code}}
- {{with .Output}} -

Output:

-
{{html .}}
+ {{$output := .Output}} + {{with .Play}} +
+
+
{{html $output}}
+
+ Run + Format + +
+
+ {{else}} +

Code:

+
{{.Code}}
+ {{with .Output}} +

Output:

+
{{html .}}
+ {{end}} {{end}}
-- cgit v1.2.3