converts templates with jade-like syntax to PHP