Update templateService.js

User can set format of {{generated}} string in layout through model