gobyexample/template/chapter.tmpl
2012-10-09 15:53:40 -07:00

33 lines
1.0 KiB
Cheetah

<!DOCTYPE html>
<html>
<head>
<meta http-eqiv="content-type" content="text/html;charset=utf-8">
<title>Go by Example: {{.Name}}</title>
<link rel=stylesheet href="site.css">
</head>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34996217-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<body>
<div class="chapter" id="{{.Id}}">
<table cellspacing="0" cellpadding="0">
<tbody>
{{range .Segs}}
<tr>
<td class=docs>{{.DocsRendered}}</td>
<td class="{{.CodeClasses}}">{{.CodeRendered}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
</body>
</html>