forked from 11ty/eleventy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dots in the global datafile path leads to data beeing incorrectly nested. This commits changes the behavior so a datafile a.b.json will create an entry with data["a.b"] instead of data.a.b. The old behavior was a bug according to 11ty#1242. The implementation makes use of lodashs set and get functions which also take object paths in array form instead of string. That way we can implement this safely. Signed-off-by: Raphael Höser <raphael@hoeser.info>
- Loading branch information
1 parent
a11a8ba
commit 05468df
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters