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.6.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file pyjst-0.1.6.tar.gz.

File metadata

  • Download URL: pyjst-0.1.6.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyjst-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a19845f9bdcac423e74905449ff2e35d82980b033759e37fee99d78081668e6c
MD5 e506d1d2a193a4da6b16fdc3c40e9fbc
BLAKE2b-256 e43ededb6529ede0e8b1904587a1ad5b8743b60b51cdfd6dec2f2522752ebe10

See more details on using hashes here.

Supported by

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