Skip to content

LecrisUT/fmf-jinja

Repository files navigation

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.

About

Jinja template engine using FMF metadata

Resources

License

Stars

Watchers

Forks

Packages

No packages published