jonschlinkert / template

Render templates from any engine. Make custom template types, use layouts on pages, partials or any custom template type, custom delimiters, helpers, middleware, routes, loaders, and lots more. Powers Assemble v0.6.0, Verb v0.3.0 and your application.
https://github.com/jonschlinkert
MIT License
52 stars 7 forks source link

other features to consider #1

Closed jonschlinkert closed 10 years ago

jonschlinkert commented 10 years ago

@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?

jonschlinkert commented 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

doowb commented 10 years ago

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.