minor edits
adds logic for `layoutExt` and for defining a `partialsKey` function.