eta-dev / eta

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
https://eta.js.org
MIT License
1.35k stars 60 forks source link

with statement is deprecated by web standards. #271

Closed AimForNaN closed 4 months ago

AimForNaN commented 6 months ago

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/with

This makes eta no longer useful for long-term projects.

nebrelbug commented 6 months ago

@AimForNaN eta doesn't use with unless you explicitly enable a flag that's turned off by default.

AimForNaN commented 6 months ago

That's something that I would enable, since I'm not a fan of prefixing template vars.