hogan-express
hogan-express copied to clipboard
Don't use extends keyword for objects
So extends
means "a" is a child of "b" . . . which turns out to be really bad with object literals. We didn't notice till we tried to pass opt.partials
in addition to opt.settings.partials
and started getting weird circular reference errors, where prototype
and constructor
were showing up when we dumped the partials.
This pull request adds a real extend method for partials and lambdas.
Also, I was unsure what your process for compiling the coffeescript was. Is there some way that that just happens or do you manually compile?
@vol4ok Is this still active?
Seriously, you're misusing the extends
key word. This is not what it's for.