tj / co-views

Higher-level template rendering for node.js using generators
173 stars 24 forks source link

add option helpers #14

Closed eyolas closed 9 years ago

eyolas commented 10 years ago

Add option helpers and add it to locals variable.

mko commented 10 years ago

Tested and confirmed that this is required for proper Helper registration with Handlebars templates. Getting this on NPM would be a helpful addition, and the code eyolas provided looks like the simplest and most appropriate implementation.

xpepermint commented 10 years ago

+1, please merge

xpepermint commented 10 years ago

@eyolas please check my commit https://github.com/visionmedia/co-views/pull/15 which also includes your proposal. I hope we get this merged soon.

haoxins commented 9 years ago

2f57d2c50c2c32dd24aa4d3f0fb677876a1b0209

v0.3.0