Skip to content

janajaeger/JinjaTemplatingProj

 
 

Repository files navigation

Templating --------------------------------------- For Homepage: homepageTemplate.jinja + data.json -> homePage.js

For general index pages for Prod, category and TRDs: indexPageTemplate.jinja + indexPageData.json -> indexPage.html - for prods & categories indexPageTemplate.jinja + indexPageTRDData.json -> indexPageTRD.html - for TRDs

For TRD all index page: indexPageTRDAll.jinja + indexPageTRDData.json -> indexPageTRDAll.html

Sample command: jinja2 inputTemplates/homePageTemplate.jinja data/homePageData.json -o outputFiles/homePage.html jinja2 inputTemplates/indexPageTemplate.jinja data/indexPageData.json -o outputFiles/indexPage.html jinja2 inputTemplates/indexPageTemplate.jinja data/indexPageTRDData.json -o outputFiles/indexPageTRD.html jinja2 inputTemplates/indexPageTRDAll.jinja data/indexPageTRDData.json -o outputFiles/indexPageTRDAll.html

jinja2 sample/sampleTemplate.jinja sample/metadata.json -o sample/sampleOutput.html

From Base Template: jinja2 inputTemplates/home.html.jinja data/homePageData.json -o outputFiles_BaseTemplates/homePage.html jinja2 inputTemplates/index.html.jinja data/indexPageData.json -o outputFiles_BaseTemplates/indexPage.html jinja2 inputTemplates/index.html.jinja data/indexPageTRDData.json -o outputFiles_BaseTemplates/indexPageTRD.html jinja2 inputTemplates/index-trd-all.html.jinja data/indexPageTRDData.json -o outputFiles_BaseTemplates/indexPageTRDAll.html

URL clarifications--------------------------------

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.1%
  • HTML 12.3%
  • JavaScript 0.7%
  • Jinja 0.4%
  • PowerShell 0.2%
  • CSS 0.2%
  • Other 0.1%