Fanstatic packaging of url-parser
Project description
js.url_parser
Introduction
This library packages url-parser 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.url_parser) are published to some URL.
How to use?
This should be setup before rendering a page. See fanstatic for more information:
>>> from fanstatic import init_needed >>> needed = init_needed(base_url='http://localhost')
You can import url_parser from js.url_parser and need it where you want these resources to be included on a page:
>>> from js.url_parser import url_parser >>> url_parser.need()
Render the inclusion:
>>> print needed.render() <script type="text/javascript" src="http://localhost/fanstatic/url-parser/url-parser.js"></script>
CHANGES
1.1.0 (unreleased)
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file js.url_parser-1.1.0.tar.gz.
File metadata
- Download URL: js.url_parser-1.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6bd804b4f1b6465983454d1d2575ae07a5a6ee783bf4ffc787b8b6805a361d7
|
|
| MD5 |
3fb93998d6778753ca18f200ff857862
|
|
| BLAKE2b-256 |
c08c243452148258026c3b72fe6896f93a6a19e6a0702e7abb2abe58aaaec6a6
|
File details
Details for the file js.url_parser-1.1.0-py2.7.egg.
File metadata
- Download URL: js.url_parser-1.1.0-py2.7.egg
- Upload date:
- Size: 9.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63584d8bce11a0a0635243eea95d0c4c7ad1bad9a6b05f3584198c97a8aedd5f
|
|
| MD5 |
899429b481255f9d9ce382adb403623c
|
|
| BLAKE2b-256 |
ac1bd3d1907b717574ffa755e380296607a8b252f49bbd2a8e12d760b6e89f82
|
File details
Details for the file js.url_parser-1.1.0-py2-none-any.whl.
File metadata
- Download URL: js.url_parser-1.1.0-py2-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59ac6b589178cf6cfecc8deeb08e56debde44ea501507a3c8b369ce11fcb0d43
|
|
| MD5 |
0b593ce683bea8e41e28aae12075ce49
|
|
| BLAKE2b-256 |
81aa041a4e5d731760010ac6a9ef2c1d73459a4f443cf9649c5b8c65352004a9
|