stewartpark / Flask-JSGlue

Flask-JSGlue helps hook up your Flask application nicely with the front end.
80 stars 39 forks source link

use setuptools & javascript strict mode #3

Closed fuhrysteve closed 9 years ago

fuhrysteve commented 9 years ago

Great little plugin, thought I'd try and add a couple improvements:

Use javascript strict mode (throws errors on undefined variables, prevents other bad practices by failing hard, etc) https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode

Use setuptools if it's available for packaging (lets you install in develop mode, is the preferred packaging tool these days), fall back to distutils if it's not available.

Thanks!

stewartpark commented 9 years ago

Thanks for the PR! All looks good! Merged!