Move template resolution into its own call. Allow absolute paths to templates out of the main tree.