brabadu / pml

Simple demo for PML renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PML

This is a demo for PML.

  1. clone a repo
  2. pip install -r requirements.txt
  3. python blockbuild/main.py

Structure

  • blockbuild/main.py is the entry point and has example for launching PML rendering with render_pml_template

  • blockbuild/blocks.py has blocks and nodes definition

  • blockbuild/templates/all.html has templates for blocks

  • blockbuild/pml/blocks.py - @pml_block definition, with quick&sloppy hack to make it work with Jinja2

  • blockbuild/pml/blocks.py - definition for render_pml_template

About

Simple demo for PML renderer


Languages

Language:Python 100.0%