clean up extendTemplate, reusable on templateFinder
require templateFinder once in layoutFinder
add example