Closed jonschlinkert closed 10 years ago
p.s. I'll probably move this to assemble after we get some kinks worked out and decide what this is going to be
I was thinking it would be the other way around. That expand would use this library instead of lodash.template directly. That way we keep the concerns separate to their own library.
The main thing that expand does that's different than most things like this is when it sees a function in the template, it attempts to append the results as an object instead of a string. I'm not sure how this will work with this library.
@doowb we could add methods for expanding config values to this lib, or use this lib in the expand lib. I'm leaning towards adding just the expand functionality here, then using the expand library as a thin wrapper around this, with additional methods for getting/setting/processing config values recursively. thoughts?