{"id":19715658,"url":"https://github.com/pyx/flask-pure","last_synced_at":"2025-06-16T01:36:20.745Z","repository":{"id":57430595,"uuid":"52265800","full_name":"pyx/flask-pure","owner":"pyx","description":"Flask-Pure - a Flask extension for Pure.css","archived":false,"fork":false,"pushed_at":"2017-04-19T04:11:09.000Z","size":56,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T11:07:43.743Z","etag":null,"topics":["flask","flask-extensions","purecss"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyx.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-22T10:28:46.000Z","updated_at":"2024-08-13T05:21:28.000Z","dependencies_parsed_at":"2022-08-27T22:12:10.480Z","dependency_job_id":null,"html_url":"https://github.com/pyx/flask-pure","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/pyx/flask-pure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-pure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-pure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-pure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-pure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyx","download_url":"https://codeload.github.com/pyx/flask-pure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyx%2Fflask-pure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260081889,"owners_count":22956205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-extensions","purecss"],"created_at":"2024-11-11T22:39:04.461Z","updated_at":"2025-06-16T01:36:20.718Z","avatar_url":"https://github.com/pyx.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"===========================================\nFlask-Pure - a Flask extension for Pure.css\n===========================================\n\nFlask-Pure is an extension to `Flask`_ that helps integrate `Pure.css`_ to your\nFlask application.\n\n\n.. _Flask: http://flask.pocoo.org/\n.. _Pure.css: http://purecss.io/\n\n\nQuick Start\n===========\n\n\n0. Installation\n\n  .. code-block:: sh\n\n    pip install Flask-Pure\n\n\n1. Configuration\n\n  .. code-block:: python\n\n    from flask import Flask, render_template\n    from flask_pure import Pure\n\n    app = Flask(__name__)\n    app.config['PURECSS_RESPONSIVE_GRIDS'] = True\n    app.config['PURECSS_USE_CDN'] = True\n    app.config['PURECSS_USE_MINIFIED'] = True\n    Pure(app)\n\n    @app.route('/')\n    def hello():\n        return render_template('hello.html')\n\n    if __name__ == '__main__':\n        app.run(debug=True)\n\n\n2. In :code:`templates/hello.html`:\n\n  .. code-block:: jinja\n\n    {% extends \"pure/layout.html\" %}\n    {% block title %}Hello world from flask-pure{% endblock %}\n\n    {% block nav %}\n    \u003cdiv class=\"pure-menu pure-menu-horizontal\"\u003e\n      \u003c!-- ... --\u003e\n    \u003c/div\u003e\n    {% endblock %}\n\n    {% block content %}\n      \u003ch1\u003eHello world\u003c/h1\u003e\n    {% endblock %}\n\n\n3. Profit!\n\n\nHow It Works\n============\n\nOnce registered, this extension provides a template variable called\n:code:`pure`, it has a property named :code:`css` that will be rendered\nas HTML :code:`\u003clink\u003e` tag to the Pure.css stylesheets either from free CDN or\nbe served from a bundled blueprint, also called :code:`pure`.\n\nA :code:`{{ pure.css }}` inside :code:`\u003chead\u003e` tag is all you need.\n\nA bare bone HTML5 template is also available as :code:`pure/layout.html`.\nPlease check out the example in code repository and documentation for details.\n\n\nLicense\n=======\n\nBSD New, see LICENSE for details.\n\n\nLinks\n=====\n\n- `Documentation \u003chttp://flask-pure.readthedocs.org/\u003e`_\n\n- `Issue Tracker \u003chttps://github.com/pyx/flask-pure/issues/\u003e`_\n\n- `Source Package @ PyPI \u003chttps://pypi.python.org/pypi/Flask-Pure/\u003e`_\n\n- `Mercurial Repository @ bitbucket\n  \u003chttps://bitbucket.org/pyx/flask-pure/\u003e`_\n\n- `Git Repository @ Github\n  \u003chttps://github.com/pyx/flask-pure/\u003e`_\n\n- `Git Repository @ Gitlab\n  \u003chttps://gitlab.com/pyx/flask-pure/\u003e`_\n\n- `Development Version\n  \u003chttp://github.com/pyx/flask-pure/zipball/master#egg=Flask-Pure-dev\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fflask-pure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyx%2Fflask-pure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyx%2Fflask-pure/lists"}