Add template patches support to pluggable