allow views to specify its layout as string