Pass rf var to the subtemplates