js.sugar is a Python library that packages Sugar 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.sugar) are published to some URL.
from js.sugar import sugar
How to use?
You can import XXX from js.sugar and need it where you want these resources to be included on a page:
>>> from js.sugar import XXX # XXX fix this test