Description
I am using Pattern Lab Node v2.7.1
on Linux
, with Node v4.6.2
, using the Grunt
Edition.
Expected Behavior
Especially for patterns in the pages
category it should be possible to override the global data.json
with category-specific values. Pattern data can still override the data, so the chain should be _data/data.json
→ _source/patterns/pages/data.json
→ _source/patterns/pages/my-page.json
where → means overridden by.
A use case is that there might be homepages with different brands. For instance there are (München Ticket) (http://muenchenticket.de) and Sueddeutsche Tickets (SZ) which share the same layout, but brands should be interchangable in the PL based on the data.json
.
The advantage is that for SZ pages the JSON doesn't have to be defined for each and every SZ page.
Actual Behavior
Placing a data.json
in a subfolder of patterns
has no effect (unless there is a pattern named data.html
of course).