Django Sublime Scroll
=====================
"Sublime Text 2"-style scroll bars.
Installation:
=============
* pip install django-sublime-scroll
* Setup wkhtmltoimage
* load template tags
.. code:: jinja
{% load sublime_scroll_tags %}
{% sublime_scroll %}
* It's a good idea to have some cache so that the page capture is not generated every time that the page is loaded. So at the very least, you should do this:
.. code:: jinja
{% load sublime_scroll_tags cache %}
{% cache 500 sublime_scroll %}
{% sublime_scroll %}
{% endcache %}
* Make sure to include RequestContext in response. Example:
.. code:: python
from django.template import RequestContext
return render_to_response('index.html', {'form': form, },
context_instance = RequestContext(request))
Settings:
=========
.. code:: python
# Absolute path to wkhtmltoimage if not in system PATH:
SUBLIME_SCROLL_WKHTMLTOIMAGE_PATH # (default: "wkhtmltoimage")
# Scroll Bar width:
SUBLIME_SCROLL_SETTINGS
# Default (in javascript):
{
'scroll_width': 150,
'offset': 0,
'z_index': 50,
'content_width': 960,
'full_height': "$('html').height()",
'opacity': 0.1,
'color': 'white',
}
Metadata
Release files for django-sublime-scroll 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-sublime-scroll-0.2.2.tar.gz | 8.0 kB | Without provenance | Details for django-sublime-scroll-0.2.2.tar.gz |
Release files / django-sublime-scroll-0.2.2.tar.gz
| Download URL | django-sublime-scroll-0.2.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b82bfecf8a2d5cc86f719c5b7e3da50a87fd07e331115f71378401243174eba9
|
|
BLAKE2b-256 checksum How to use checksums |
9a3a90215accffe087d05a426a9ee40f248330b686a4690118ae89fc47faf797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-sublime-scroll 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.