grits


Namegrits JSON
Version 0.5.1 PyPI version JSON
download
home_pagehttps://github.com/numberoverzero/grits
SummaryStatic SPA Generator
upload_time2017-07-17 00:08:11
maintainer
docs_urlNone
authorJoe Cross
requires_python
licenseMIT
keywords static blog spa generator
VCS
bugtrack_url
requirements beautifulsoup4 click flake8 jinja2 twine wheel
Travis-CI No Travis.
coveralls test coverage No coveralls.
            grits
~~~~~

Static blog generator that creates a single page app.  Dynamic routes are possible for some hosts (not GH-Pages).


Change Log
~~~~~~~~~~

====================
[0.5.1] - 2017.07.16
====================

``prettify_html`` is a noop for now, since ``BeautifulSoup.prettify`` was
inserting significant whitespace into elements.

==================
[0.5] - 2017.06.14
==================

Rewrote the content splitting mechanism.  Each source html file can have the following format:
* at most one <head> section
* exactly one <main> section (with any number of inner scripts)
* any number of top-level <script> sections.

``grits-build`` takes ``--src``, ``--dst``, and ``--tpl``.  Use ``--tpl`` to provide your own templates for eg.
``__full.html`` or ``__partial.html``.

Source scripts are broken up and the pieces stored in the rendering context as ``"head"``, ``"main"``,
and ``"scripts"``.  These are each strings.

The simplest way to use ``render.Renderer`` is through ``Renderer.process()`` which runs through the source folder
and generates the necessary mapp-specific components like ``_dynamicRoutes.json``.  If you manually generate files,
make sure to call ``Renderer.render_scaffolding()`` to produce those files.

-----
Added
-----

* Split src_dir from templates_dir
* contents of src_dir are always rendered to output while templates_dir are only used to find extra templates

==================
[0.4] - 2017.06.11
==================

-----
Added
-----

* ``Renderer.render`` handles binary files, uses ``context["is_binary"]``
  function to decide if file should be copied directly.
  Defaults to ``grits.render.default_is_binary``.
* Properly copy ``templates/static`` for rendering.

=================
[0.2] - 2017.1.30
=================

-----
Added
-----

* ``grits.build``
* scripts ``grits-build`` and ``grits-serve``

==========================
[0.1] - 2017.1.29 [YANKED]
==========================

-----
Added
-----

Initial commit



            

Raw data

            {
    "_id": null,
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "cheesecake_code_kwalitee_id": null,
    "keywords": "static blog spa generator",
    "upload_time": "2017-07-17 00:08:11",
    "requirements": [
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    "==",
                    "4.6.0"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "6.7"
                ]
            ]
        },
        {
            "name": "flake8",
            "specs": [
                [
                    "==",
                    "3.2.1"
                ]
            ]
        },
        {
            "name": "jinja2",
            "specs": [
                [
                    "==",
                    "2.9.5"
                ]
            ]
        },
        {
            "name": "twine",
            "specs": [
                [
                    "==",
                    "1.8.1"
                ]
            ]
        },
        {
            "name": "wheel",
            "specs": [
                [
                    "==",
                    "0.29.0"
                ]
            ]
        }
    ],
    "author": "Joe Cross",
    "home_page": "https://github.com/numberoverzero/grits",
    "github_user": "numberoverzero",
    "download_url": "https://pypi.python.org/packages/ab/2b/50f98be347dccf8a1ffee15633741231df7029ec0abe68162430bad4b347/grits-0.5.1.tar.gz",
    "platform": "any",
    "version": "0.5.1",
    "cheesecake_documentation_id": null,
    "description": "grits\n~~~~~\n\nStatic blog generator that creates a single page app.  Dynamic routes are possible for some hosts (not GH-Pages).\n\n\nChange Log\n~~~~~~~~~~\n\n====================\n[0.5.1] - 2017.07.16\n====================\n\n``prettify_html`` is a noop for now, since ``BeautifulSoup.prettify`` was\ninserting significant whitespace into elements.\n\n==================\n[0.5] - 2017.06.14\n==================\n\nRewrote the content splitting mechanism.  Each source html file can have the following format:\n* at most one <head> section\n* exactly one <main> section (with any number of inner scripts)\n* any number of top-level <script> sections.\n\n``grits-build`` takes ``--src``, ``--dst``, and ``--tpl``.  Use ``--tpl`` to provide your own templates for eg.\n``__full.html`` or ``__partial.html``.\n\nSource scripts are broken up and the pieces stored in the rendering context as ``\"head\"``, ``\"main\"``,\nand ``\"scripts\"``.  These are each strings.\n\nThe simplest way to use ``render.Renderer`` is through ``Renderer.process()`` which runs through the source folder\nand generates the necessary mapp-specific components like ``_dynamicRoutes.json``.  If you manually generate files,\nmake sure to call ``Renderer.render_scaffolding()`` to produce those files.\n\n-----\nAdded\n-----\n\n* Split src_dir from templates_dir\n* contents of src_dir are always rendered to output while templates_dir are only used to find extra templates\n\n==================\n[0.4] - 2017.06.11\n==================\n\n-----\nAdded\n-----\n\n* ``Renderer.render`` handles binary files, uses ``context[\"is_binary\"]``\n  function to decide if file should be copied directly.\n  Defaults to ``grits.render.default_is_binary``.\n* Properly copy ``templates/static`` for rendering.\n\n=================\n[0.2] - 2017.1.30\n=================\n\n-----\nAdded\n-----\n\n* ``grits.build``\n* scripts ``grits-build`` and ``grits-serve``\n\n==========================\n[0.1] - 2017.1.29 [YANKED]\n==========================\n\n-----\nAdded\n-----\n\nInitial commit\n\n\n",
    "lcname": "grits",
    "name": "grits",
    "github": true,
    "coveralls": false,
    "bugtrack_url": null,
    "license": "MIT",
    "travis_ci": false,
    "github_project": "grits",
    "summary": "Static SPA Generator",
    "split_keywords": [
        "static",
        "blog",
        "spa",
        "generator"
    ],
    "author_email": "joe.mcross@gmail.com",
    "urls": [
        {
            "has_sig": false,
            "upload_time": "2017-07-17T00:08:09",
            "comment_text": "",
            "python_version": "py2.py3",
            "url": "https://pypi.python.org/packages/34/9c/631d66afd7023e588146c15277c03ca166bea03d553325a667838827b1f3/grits-0.5.1-py2.py3-none-any.whl",
            "md5_digest": "ff929e2a29da824e13bd265641c221da",
            "downloads": 0,
            "filename": "grits-0.5.1-py2.py3-none-any.whl",
            "packagetype": "bdist_wheel",
            "path": "34/9c/631d66afd7023e588146c15277c03ca166bea03d553325a667838827b1f3/grits-0.5.1-py2.py3-none-any.whl",
            "size": 10912
        },
        {
            "has_sig": false,
            "upload_time": "2017-07-17T00:08:11",
            "comment_text": "",
            "python_version": "source",
            "url": "https://pypi.python.org/packages/ab/2b/50f98be347dccf8a1ffee15633741231df7029ec0abe68162430bad4b347/grits-0.5.1.tar.gz",
            "md5_digest": "9dc8c750f7be4dde941d3d5abd7ccdef",
            "downloads": 0,
            "filename": "grits-0.5.1.tar.gz",
            "packagetype": "sdist",
            "path": "ab/2b/50f98be347dccf8a1ffee15633741231df7029ec0abe68162430bad4b347/grits-0.5.1.tar.gz",
            "size": 7610
        }
    ],
    "cheesecake_installability_id": null
}
        
Elapsed time: 0.06357s