Surrogate Final BH properties.
Project description
Flask-Share
Create social share component in Jinja2 template based
on share.js <https://github.com/overtrue/share.js/>
_.
Get Started
Installation is easy:
.. code:: bash
$ pip install flask-share
Initialize the extension:
.. code:: python
from flask_share import Share
...
share = Share(app)
Also support for factory pattern:
.. code:: python
from flask_share import Share
share = Share()
def create_app():
app = Flask(__name__)
...
share.init_app(app)
Example
Here is a simple demo to demonstrate how to create a share component in template:
.. code:: html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flask-Share Demo</title>
{{ share.load() }}
</head>
<body>
<h1>Hello, Flask-Share!</h1>
<p>Maecenas tincidunt lacus at velit. Phasellus in felis. Praesent
id massa id nisl venenatis lacinia. Integer ac neque. Morbi ut odio.
Nullam varius. Sed vel enim sit amet nunc viverra dapibus. Nullam
varius. In hac habitasse platea dictumst.</p>
{{ share.create(title='Share with: ') }}
</body>
</html>
And here is what you get:
.. figure:: https://raw.githubusercontent.com/greyli/flask-share/master/images/demo.png
Before you ask, the share component is highly customizable.
Links
Documentation <https://flask-share.readthedocs.io/en/latest/>
_PyPI <https://pypi-hypernode.com/project/Flask-Share/>
_
Development
We welcome all kinds of contributions. You can run test like this:
.. code:: bash
$ python setup.py test
Authors
Maintainer: Grey Li <http://greyli.com>
_
See also the list of
contributors <https://github.com/greyli/flask-share/contributors>
_
who participated in this project.
License
This project is licensed under the MIT License (see the
LICENSE
file for details).
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 Distribution
File details
Details for the file surfinBH-0.0.4.dev2.tar.gz
.
File metadata
- Download URL: surfinBH-0.0.4.dev2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44adb69128149a4acab2844a3a238723bad641ee093597201bc8dee36dba2a68 |
|
MD5 | 588bc1dd79d39b9b504e7a0a3a2311aa |
|
BLAKE2b-256 | a717a710f19e8d083e9288a55cb11414428714d2e8b661cab0736cfcf74003ee |
File details
Details for the file surfinBH-0.0.4.dev2-py2-none-any.whl
.
File metadata
- Download URL: surfinBH-0.0.4.dev2-py2-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33dda4d4722cb3700e744c107fbaf2a153dcfb50eb270eb0b151332b02a78c54 |
|
MD5 | e2fcac2fd7ce970195fbb3fb8b02c8ec |
|
BLAKE2b-256 | 742ac5c487c0153e52504a2e299de67d48778246063f45dfab7dc6535950d4a0 |