--- /dev/null
+<h1>package {PackageName|html}</h1>
+<p><code>import "{ImportPath|html}"</code></p>
+
+{Doc|html-comment}
+{.section Consts}
+ <h2>Constants</h2>
+ {.repeated section @}
+ {Doc|html-comment}
+ <pre>{Decl|html}</pre>
+ {.end}
+{.end}
+{.section Vars}
+ <hr />
+ <h2>Variables</h2>
+ {.repeated section @}
+ {Doc|html-comment}
+ <pre>{Decl|html}</pre>
+ {.end}
+{.end}
+{.section Funcs}
+ <hr />
+ {.repeated section @}
+ <h2>func {Name|html}</h2>
+ <p><code>{Decl|html}</code></p>
+ {Doc|html-comment}
+ {.end}
+{.end}
+{.section Types}
+ <hr />
+ {.repeated section @}
+ <h2>type {.section Type}{Name|html}{.end}</h2>
+ {Doc}
+ <p><code>{Decl|html}</code></p>
+ {.repeated section Factories}
+ <h3>func {Name|html}</h3>
+ <p><code>{Decl|html}</code></p>
+ {Doc|html-comment}
+ {.end}
+ {.repeated section Methods}
+ <h3>func ({Recv|html}) {Name|html}</h3>
+ <p><code>{Decl|html}</code></p>
+ {Doc|html-comment}
+ {.end}
+ {.end}
+{.end}
--- /dev/null
+PACKAGE
+
+package {PackageName}
+import "{ImportPath}"
+{.section Doc}
+
+{@}
+{.end}
+{.section Consts}
+
+CONSTANTS
+{.repeated section @}
+{# the .repeated section, .section idiom skips over nils in the array}
+
+{Decl}
+
+{Doc}
+{.end}
+{.end}
+{.section Vars}
+
+VARIABLES
+{.repeated section @}
+
+{Decl}
+
+{Doc}
+{.end}
+{.end}
+{.section Funcs}
+
+FUNCTIONS
+{.repeated section @}
+
+{Decl}
+
+{Doc}
+{.end}
+{.end}
+{.section Types}
+
+TYPES
+{.repeated section @}
+
+{Decl}
+
+{Doc}
+{.repeated section Factories}
+
+{Decl}
+
+{Doc}
+{.end}
+{.repeated section Methods}
+
+{Decl}
+
+{Doc}
+{.end}
+{.end}
+{.end}
--- /dev/null
+{.section Packages}
+<b>Packages</b><br />
+{.repeated section @}
+<a href="{pakname|html}">{importpath|html}</a><br />
+{.end}
+{.or}
+No such package {Path|html}<br />
+{.end}
+{.section Subdirs}
+<br />
+<b>Directories</b><br />
+{.repeated section @}
+<a href="{Name|html}/">{Path|html}{Name|html}/</a><br />
+{.end}
+{.end}
--- /dev/null
+{.section Packages}
+{# TODO .or doesn't work on .repeated - template bug}
+{.repeated section @}
+godoc {pakname}
+{.end}
+{.or}
+package not found: {Path}
+{.end}
+{.repeated section Subdirs}
+godoc {Path}/{Name}/
+{.end}
--- /dev/null
+<h1>Parse errors in {filename}</h1>
+<pre>
+{.repeated section list}
+{src}{.section msg}<b><font color=red>«{msg|html}»</font></b>{.end}{.end}</pre>
--- /dev/null
+parse errors:
+{.repeated section list}
+{.section msg}
+{filename}:{line}: {msg}
+{.end}
+{.end}