Multiline templates

**WIP: do not merge!**