Please update to the new v3.0.3 release of pug as soon as possible as it contains a security fix for a potential remote code execution vulnerability: https://t.co/EcRdaHEyGi
@fwilhe Two reasons:
1. The key is optional, but the value is required, so the optional part comes after the required part.
2. It matches the parameter order for JavaScript’s array.forEach
The other reason is it would be difficult to change now.
🐶 What about a native support of @pug_js as template syntax for @vuejs#components? It's now available and you can already play with it 🤗
Try it now 👉 https://t.co/7Fx7950N1t
#vuejs#js#pug
@FeschGordon https://t.co/B5eaLdLxpO
`include:escape-html othertemplate` should work, unless you want to filter the result of rendering the other template. You could do that with `include:escape-html:pug othertemplate` it won't have access to locals though because filters are compile time.
A new release of pug is landing very soon, with support for filters that operate on Buffers (e.g. import a png and filter it to an img tag with base64 URL) and `each ... of ...` syntax that is more efficient than `each ... in ...`. You can try it now via `npm i pug@canary`