Build the template from the node's path