Add cookbook attribute to template