Skip to main content

Render Engine BasePageParser

The BasePageParser is used for making content for Render Engine. Parsers are used to parse the content of a page and convert it to HTML. The parser is specified in the page attributes as Parser.

This is meant to be used by Render Enging but can be used as a base dependency for building custom Render Engine Parsers.

Using Frontmatter

Frontmatter is used to pull in attributes from a generated page.

Some pages will be looking for information that is provided in the frontmatter. All of the attributes defined can be used in the template (which itself can also be defined in the frontmatter or the class itself.

NOTE These attributes CANNOT be used in the content itself, but you can use them in the template generation.

Parsing the Data

The base parser doesn't is a pass-thru parser meaning the content input will be passed through.

---
title: "Spider-Man"
name: "Peter Parker"
superhero: "Spider-Man"
---

<h2>I'm your friendly neighborhood Spiderman</h2>

<p>I was bitten by a radioactive spider and now I fight crime.</p>

If you generate the page with the following template

<h1>About {{superhero}}</h1>
<h2>Real Name: {{alias}}</h2>

<div>
{{content}}
</div>

it would generate.

<h1>About Spider-Man</h1>
<h2>Alias: Peter Parker</h2>

<div>
<h2>I'm your friendly neighborhood Spiderman</h2>

<p>I was bitten by a radioactive spider and now I fight crime.</p>
</div>

Metadata

Release files for render-engine-parser 2024.9.0

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

Source distribution (sdist)

Source distribution for render-engine-parser 2024.9.0
File Size Uploaded Provenance
render_engine_parser-2024.9.0.tar.gz 9.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for render-engine-parser 2024.9.0
File Interpreter ABI Platform
render_engine_parser-2024.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / render_engine_parser-2024.9.0.tar.gz

Download URL render_engine_parser-2024.9.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d3073a34fb448219add6199d318042919e7b0d030d15fd884afafa56acf791c3
BLAKE2b-256 checksum
How to use checksums
d5e4eba67036301a0ff227d641e980501644b593909b1ed3cf5073fd7f14ed7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / render_engine_parser-2024.9.0-py3-none-any.whl

Download URL render_engine_parser-2024.9.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efe5ecb72118761fb72753b25e7e3df8157cd6474bdcc24b07b93e51bfdac063
BLAKE2b-256 checksum
How to use checksums
fefc4f17fa2b45258dc28534d3050fcaacaffd652c24fb3f70b98d76ca7b6391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Security for render-engine-parser 2024.9.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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