Skip to main content

Fanstatic packaging of Moment.js

Project description

js.momentjs

Introduction

This library packages Moment.js for fanstatic.

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()

The timezone plugin is available as well:

>>> from js.momentjs import moment_timezone
>>> moment_timezone.need()

By default no timezone information is included. However you can choose to include all the timezone data:

>>> from js.momentjs import moment_timezone_with_data
>>> moment_timezone_with_data.need()

CHANGES

2.6.0-1 (2014-05-22)

  • Add timezone plugin and its data file containing all the timezone information.

2.6.0 (2014-05-04)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

js.momentjs-2.6.0-1.tar.gz (163.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page