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`