Generic template component to convert input using any template compiler