Port the common layout template.