Skip to main content

js.fanstatictools

Introduction

This library provides some javascript helpers for use with fanstatic.

Get URLs of resources from within Javascript

When you need to load other (fanstatic) resources inside your javascript, you may want to calculate the URL to the fanstatic library the resource is defined in. Using relative URLs does not work, because they are calculated relative to the windows URL, not to the URL of the current script, which can be different.

After including the js.fanstatictools.lib_url fanstatic resource, you are able to call fanstatictools.get_library_url(‘name_of_your_library’), which returns the url. Add the filename of the resource to the end and you are done.

How to use?

You can import url from js.fanstatictools and need it where you want these resources to be included on a page:

>>> from js.fanstatictools import lib_url
>>> lib_url.need()

CHANGES

0.1 (2013-05-15)

  • Initial release.

Release files for js.fanstatictools 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for js.fanstatictools 0.1
File Size Uploaded
js.fanstatictools-0.1.zip 10.4 kB Details

Release files / js.fanstatictools-0.1.zip

Download URL js.fanstatictools-0.1.zip
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a632b2d7e2e4b4a918999f27bb17c1fbec5100f25b2b968ce00d85aeda4de905
BLAKE2b-256 checksum
How to use checksums
1bdb351e2b50761a70756e6544417df7ca253c040c71cda5da657a4f7cfcb511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page