skip to navigation
skip to content

js.foutbgone 0.1

Fanstatic packaging of FOUT-B-Gone



This library packages `FOUT-B-Gone`_ for `fanstatic`_.

.. _`fanstatic`:
.. _`FOUT-B-Gone`:

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.foutbgone``) are published to some URL.

How to use?

You can import FOUT-B-Gone from ``js.foutbgone`` and ``need`` it where you want
these resources to be included on a page::

>>> from js.foutbgone import foutbgone
>>> foutbgone.need()

There is also an init available which renders the initialization into the HTML::

>>> from js.foutbgone import foutbgone_init
>>> from fanstatic import NeededResources
>>> needed = NeededResources()
>>> needed.need(foutbgone_init)
>>> print needed.render()
<script type="text/javascript" src="/fanstatic/fout-b-gone/foutbgone.js"></script>
<script type="text/javascript">fbg.hideFOUT('asap');</script>

0.1 (2011-07-20)

- Initial release.  
File Type Py Version Uploaded on Size
js.foutbgone-0.1.tar.gz (md5) Source 2011-07-20 10KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 21 downloads in the last week
  • 86 downloads in the last month
  • Author: Fanstatic Developers
  • License: BSD
  • Package Index Owner: janjaapdriessen, jw, r_icke
  • DOAP record: js.foutbgone-0.1.xml