Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Bake a template from corresponding JSON object

Project description

# pyjst

Bake a template from corresponding JSON object

## How to use

Install (Python 3) : `pip install pyjst`

Create a project directory with given structure :
- project_name/
- datas/
- templates/

In **templates/** you can put templates with extension **.html**. In **datas/** you can put
corresponding data with extension **.json**. What this module does is simply render asked template
_name.html_ with corresponding data _name.json_. The output is generated in folder **output/**.

For instance let this file tree :
- example/
- datas/
- example.json
- another.json
- templates/
- example.html
- another.html

So go into your project folder : `cd example`

Then generate your static page _example_ : `pyjst example`

Or generate static page _another_ : `pyjst another`

Done !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyjst, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size pyjst-0.1.6.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page