add 'path' attribute to templates