How to use the chevron.ChevronError function in chevron

To help you get started, we’ve selected a few chevron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github samuelcolvin / nosht / py / web / views / emails.py View on Github external
def check_mustache(cls, v):
        try:
            chevron.render(v, data={})
        except (ChevronError, IndexError):
            raise ValueError('invalid mustache template')
        return v

chevron

Mustache templating language renderer

MIT
Latest version published 4 years ago

Package Health Score

76 / 100
Full package analysis

Similar packages