-
Notifications
You must be signed in to change notification settings - Fork 41
when render data has properties like "views,settings,ext", it will throw errors #21
Comments
sorry for the delay. looking into this. |
The reason for this being a problem is |
Agreed it is invonvenient(dust could have used something better namespaced), but is there a way you can exclude these property names ? |
I think I can solve this in the adaro 1.0 release, since there's already a rescoping of some values in there. |
It will be fixed. I made these changes which will be reflected in Express 5 expressjs/express#2648 |
Indeed. Doesn't look like it'll make the 1.0 release, since Express itself is what mixes these concerns together. |
Aha, right |
when call like this in controller,
if data has no properties like "views,settings,ext", it can run ok,
BUT,when data has these properties,like this
the programe will throw errors of 503.
I find these errors is caused by adaro\lib\engine.js,adaro\lib\utils.js, in which the above three properties is used as important parameters.
But these properties name can also be used as data for render. When your data has "views,settings,ext" properties name, the programe will core.
You can git checkout my test case to verify it.
The text was updated successfully, but these errors were encountered: