First working prototype with templates. TODO: whitespace stabilisation.