tj / co-views

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

rename .ext to .default #1

Closed tj closed 10 years ago

tj commented 10 years ago

even though it'll highlight lame

hemanth commented 10 years ago

Is it just having var ext = opts['default'] || 'html' at L#41 ?

I was trying to modify it and noticed :

Error: Generator is already running
    at GeneratorFunctionPrototype.throw (native)
    at next (/private/tmp/co-views/node_modules/co/index.js:38:24)
    at next (/private/tmp/co-views/node_modules/co/index.js:41:16)
    at Immediate._onImmediate (/private/tmp/co-views/node_modules/co/index.js:70:11)
    at processImmediate [as _immediateCallback] (timers.js:385:17)

@visionmedia P.S : I might have got the required wrong :)