Support for merging a layouts fileMeta with the current documents during layout rendering.#133
Support for merging a layouts fileMeta with the current documents during layout rendering.#133mmoulton wants to merge 1 commit into
fileMeta with the current documents during layout rendering.#133Conversation
…cuments rendering in the absence of an equivalent key in a documents metadata
|
What an interesting idea! Never thought of that! Thanks! Happy to do a pull in the next release, although this does seem like it could introduce a few regressions... Perhaps, if I introduce it as a new property called |
|
Great mmoulton, that's a really useful concept. |
|
Two things to get this merged:
One use case I think with point 1, is that if we have Thanks mate, it is a fantastic change and I would love to see it included. |
|
I never got around to cleaning up this pull. In response to the two issues:
I will close this pull request and start a new one off the current master with test cases soon. |
Now when a property of the same name is defined both in the document and the layout, the documents value is preferred, if it exists. If the property exists in the layout, but not the document, the layouts value will be used. Enabling sane defaults to be defined in the layout and overridden in the document.