Skip to content

Commit

Permalink
Allow users to optionally override templates (#1319)
Browse files Browse the repository at this point in the history
* Create overrides directory & readme.partial.yaml.j2

* Add bootstrap/overrides to makejinja.toml
  • Loading branch information
wasurerarenai authored Feb 14, 2024
1 parent c3bf719 commit 840506c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bootstrap/overrides/readme.partial.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% Place user jinja template overrides in this file's directory %>
<% Docs: https://mirkolenz.github.io/makejinja/makejinja.html %>
<% Example: https://github.com/mirkolenz/makejinja/blob/main/tests/data/makejinja.toml %>
<% Example: https://github.com/mirkolenz/makejinja/blob/main/tests/data/input1/not-empty.yaml.jinja %>
<% Example: https://github.com/mirkolenz/makejinja/blob/main/tests/data/input2/not-empty.yaml.jinja %>
2 changes: 1 addition & 1 deletion makejinja.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[makejinja]
inputs = ["./bootstrap/templates"]
inputs = ["./bootstrap/templates","./bootstrap/overrides"]
output = "./"
exclude_patterns = [".mjfilter.py", "*.partial.yaml.j2"]
data = ["./config.yaml"]
Expand Down

0 comments on commit 840506c

Please sign in to comment.