Visualforce page transpiler from Go html/template.
$ go get -u github.com/tzmfreedom/alt-vf
create template file with html/template
<html>
<head></head>
<body>
{{if .xxx }}
<p>foo bar</p>
{{end}}
{{if eq .xxx 1 }}
<p>foo bar</p>
{{end}}
</body>
</html>
execute command
$ alt-vf sample.template
output converted template file
<apex:page>
<html>
<head></head>
<body>
<apex:outputPanel rendered="{!xxx}">
<p>foo bar</p>
</apex:outputPanel>
<apex:outputPanel rendered="{!xxx == 1}">
<p>foo bar</p>
</apex:outputPanel>
</body>
</html>
</apex:page>