Make context available to layout template