noahmorrison / chevron

A Python implementation of mustache
MIT License
510 stars 54 forks source link

[Feature Request] chevron should work with binary format #83

Open alanyee opened 4 years ago

alanyee commented 4 years ago
import chevron

with open('file.mustache', 'r') as f:
    chevron.render(f, {'mustache': 'World'})

outputs Hello World, but

import chevron

with open('file.mustache', 'rb') as f:
    chevron.render(f, {'mustache': 'World'})

becomes TypeError: cannot unpack non-iterable int object