Skip to content

jinjer2 is a jinja2 command line macro tool (recursive file processor)

License

Notifications You must be signed in to change notification settings

val314159/jinjer2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jinjer2

Ginger: a cat who loves macros!

jinjer2 is a jinja2 command line macro tool (recursive file processor)

Install:

python setup.py install

Run:

export VERBOSE=1

jinjer2.py

What did it just do?

  1. load models (import models.py)
  2. walk template directories (content), render against local -> output dir
  3. local = models + <root_dir>/site.py + <next_root_dir>/site.py + <bottom_dir>/site.py
  4. walk static directories (static), copy/link -> output dir
  • how do includes work? relative to root?

  • template inheritance example?

  • when walking directories, probably dont need to copy the toplevel name
    (i.e. dont copy into ./output/content/stuff/blah.xxx -> do output/stuff/blah.xxx)

About

jinjer2 is a jinja2 command line macro tool (recursive file processor)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published