Improves the render of the templates in the engine model

This will allow multiline templates and templates with single quoutes