Compile erb style template files into Go functions