Skip to content

Instantly share code, notes, and snippets.

@valueof
Created September 14, 2011 23:19
Show Gist options
  • Select an option

  • Save valueof/1218087 to your computer and use it in GitHub Desktop.

Select an option

Save valueof/1218087 to your computer and use it in GitHub Desktop.
package main
import (
"template"
"fmt"
)
func main() {
tmpl := template.New(nil)
tmpl.SetDelims("{{", "}}")
if err := tmpl.ParseFile("template.html"); err != nil {
fmt.Print("Error\n")
}
}
<script type="text/javascript">
/* <![CDATA[ */
(function() {
var s = document.createElement("script"), t =
document.getElementsByTagName("script")[0];
s.type = "text/javascript";
s.async = true;
s.src = "http://api.flattr.com/js/0.6/load.js?mode=auto";
t.parentNode.insertBefore(s, t);
})();
/* ]]> */
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment