Support options.layout and prepend it into "extend"-command at start of template code