Revert "Revert "Support for other templating engines""

This reverts commit d21a516a94ab182c7c332066fb5b0dacbac4f0f6.
Revert "Support for other templating engines"

This reverts commit b0a9ea330efa760dba6886b96df1ba7e19324b94.
Templates changed back to normal
Template references changed back