assemble templates