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

helpers on options #5

Closed doowb closed 9 years ago

doowb commented 9 years ago

When helpers are defined on global options:

template.option('helpers', {
  upper: function (str) {
    return str.toUpperCase();
  }
});

Should the helpers get passed to engines?

Also, I think we used to pass the helpers when passing them in through render but it looks like that was removed (due to some other changes).

jonschlinkert commented 9 years ago

Yeah, I think they should. You?

doowb commented 9 years ago

Closed via https://github.com/jonschlinkert/template/commit/45ffa0f73cd3af8b193e0eb236aa0298c1c663ab