noahmorrison / chevron

A Python implementation of mustache
MIT License
486 stars 52 forks source link

Add command-line option to warn on undefined keys #72

Closed joshhansen closed 3 years ago

joshhansen commented 4 years ago

Just a little something I find convenient when diagnosing my templates. if the -w or --warn flag is provided on the command line, or warn=True to render, a simple warning will be printed to stderr on each key referenced by the template but not defined in the data.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.4%) to 99.595% when pulling 2cbf772dbaab407ad9d7b2703dc30881e42d184c on joshhansen:master_warn into 78f1a384eddef16906732d8db66deea6d37049b7 on noahmorrison:master.

noahmorrison commented 3 years ago

@joshhansen merged