pass `locals` (options) to layouts