Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.9 KB

README.md

File metadata and controls

64 lines (48 loc) · 1.9 KB

FMF-Jinja

CI Status Codecov Status

Documentation Status

Jinja templating engine using fmf metadata.

Concept

The scope of this project is to take a templated folder and generate multiple output folders with relation to one another. Consider the following fmf file example in example/minimal:

var1: 42
var2: Default value

/rootA:
/rootB:
  var2: Overwritten

This is interpreted by fmf as:

$ fmf show --path example/minimal
/rootA
var1: 42
var2: Default value

/rootB
var1: 42
var2: Overwritten

These variables (var1, var2) are then used as variables inside a jinja template creating templated folders under rootA and rootB with their respective values. Try it out by running

$ fmf-jinja -r example/minimal generate -o /path/to/some/output/folder

To appreciate the full capabilities see the fmf features and jinja template guide. Also check the online documentation for more examples and detailed usage guide.