Metadata-Version: 2.0
Name: Flask-Share
Version: 0.1.1
Summary: Create social share component in Jinja2 template based on share.js.
Home-page: https://github.com/greyli/flask-share
Author: Grey Li
Author-email: withlihui@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: flask extension development
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Flask

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.org/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).


