Commit
… processed. previously, lodash templates were only processed for the context of the "current page" but were left un-processed for the "other pages".
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -299,6 +299,7 @@ module.exports = function(grunt) { | |
|
||
var pageInfo = yfm.extract(page, {fromFile: false}); | ||
pageContext = useFileInfo ? (fileInfo.data || fileInfo.metadata || {}) : pageInfo.context; | ||
pageContext = grunt.config.process(pageContext); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jonschlinkert
Author
Member
|
||
|
||
// Page object | ||
var pageObj = { | ||
|
2 comments
on commit 32324d3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is giving me some trouble.
I simply have a data file called foo.yaml and want to include it via yaml fm like so
bar: '<%= foo %>'
Without the change, it worked as expected, but now bar is turned into an empty string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, this will be reverted today.
This is working properly? I had tried doing this before but had issues when properties were being used in the YFM that defined in the YFM. My understanding of
grunt.config.process()
was that it only used the properties that were already ingrunt.config.data
, but maybe something changed.