process placeholders in header&footer