Skip to content

duffpl/docker-jinja2cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-jinja2cli

Docker version of jinja2-cli.

Usage

You can build this image like this:

docker build -t vikingco/jinja2cli .

Say you have a template called template.j2 and a YAML file called data.yml.

$ cat template.j2
{{ title }}

$ cat data.yml
title: My Title

Then you can render this template by executing

$ docker run -v $(pwd):/data vikingco/jinja2cli template.j2 data.yml > out
$ cat out
My Title

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%