Skip to main content

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.

Source Distribution

pyjst-0.1.4.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page