Fanstatic packaging of Moment.js
This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.momentjs) are published to some URL.
How to use?
You can import moment from js.momentjs and need it where you want these resources to be included on a page:
>>> from js.momentjs import moment >>> moment.need()
By default no locale information is included. However you can choose to include all the timezone data:
>>> from js.momentjs import moment_with_locales >>> moment_with_locales.need()
- Provides all languages as fanstatic resources.
- Update to moment-2.13.0 and moment-timezone-0.5.4.
- Add moment-timezone.
- Update to 2.8.3.
- The structure of the moment.js distribution changed, you may need to update your Python imports.
- Add timezone plugin and its data file containing all the timezone information.
- Initial release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size js.momentjs-2.13.1.tar.gz (327.2 kB)||File type Source||Python version None||Upload date||Hashes View hashes|