Fanstatic packaging of FOUT-B-Gone
Project description
js.foutbgone
************
Introduction
============
This library packages `FOUT-B-Gone`_ for `fanstatic`_.
.. _`fanstatic`: http://fanstatic.org
.. _`FOUT-B-Gone`: http://www.extensis.com/en/WebINK/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>
CHANGES
*******
0.1 (2011-07-20)
================
- Initial release.
************
Introduction
============
This library packages `FOUT-B-Gone`_ for `fanstatic`_.
.. _`fanstatic`: http://fanstatic.org
.. _`FOUT-B-Gone`: http://www.extensis.com/en/WebINK/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>
CHANGES
*******
0.1 (2011-07-20)
================
- Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
js.foutbgone-0.1.tar.gz
(10.7 kB
view details)
File details
Details for the file js.foutbgone-0.1.tar.gz
.
File metadata
- Download URL: js.foutbgone-0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ecaefb63b9faa49eb74618387bceeaea50365a8371c8e3e98a8faaf5d2df28b |
|
MD5 | 96154f553b355a6fe600480bc106a894 |
|
BLAKE2b-256 | 6af2e28a0e0e2c15ca7cc958bfd9850d04f571cf6b11f8c9e5fe57493f967cc4 |