Add support for dynamic templates in the mapping DSL