8000 GitHub - numbertheory/j2express: CLI for Jinja written from the ground up
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

numbertheory/j2express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

j2express

CLI for Jinja written from the ground up

Motivation

This will provide more feedback than other implementations of j2 templating on the command line.

Installation

After cloning the repo, activate a virtual environment and run

pip install .

Running

Process template:

j2x -f template.j2

Show help and options:

j2x --help

Flags

  • --trim-blocks / --no-trim-blocks: Set Jinja's environment to trim whitespace. (default: --no-trim-blocks)
  • --lstrip-blocks / --no-lstrip-blocks: Set Jinja's environment to remove whitespace from the left. (default: --lstrip-blocks)
  • --strict / --no-strict: Set to fail the render process if an environmental variable is referenced that is not set (default: --no-strict)

Goals

  • process templates with exported e 59D7 nv variables being represented as: {{ VARIABLE_NAME }}
  • install and make available on the command line
  • make available on PyPI
  • colorized output for troubleshooting variables
  • support for arrays from command line

About

CLI for Jinja written from the ground up

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0