Apply partial-templating