setting template from node attributes