Skip to main content

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

Metadata

Release files for grits 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grits 0.5.1
File Size Uploaded Provenance
grits-0.5.1.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for grits 0.5.1
File Interpreter ABI Platform
grits-0.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 18.5 kB

Release files / grits-0.5.1.tar.gz

Download URL grits-0.5.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dbff1367a1be96486ef034dd69669beb4eae71f53c0527fe9c127f4867ebac3a
BLAKE2b-256 checksum
How to use checksums
ab2b50f98be347dccf8a1ffee15633741231df7029ec0abe68162430bad4b347
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / grits-0.5.1-py2.py3-none-any.whl

Download URL grits-0.5.1-py2.py3-none-any.whl
Size 10.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c908fd231dd20cd1c4e501c4a96375d471c279ffc4e9de4064cddd67c00fc36
BLAKE2b-256 checksum
How to use checksums
349c631d66afd7023e588146c15277c03ca166bea03d553325a667838827b1f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for grits 0.5.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page