Skip to content

Templating support #204

Answered by BetaHuhn
BetaHuhn asked this question in Ideas
Discussion options

You must be logged in to vote

@dhruvkb added support for Jinja style templates using Nunjucks:

user/repo:
  - source: src/README.md
    template:
      user:
        name: 'Maxi'
        handle: '@BetaHuhn'

In the source file you can then use these variables like this:

# README.md

Created by {{ user.name }} ({{ user.handle }})

Result:

# README.md

Created by Maxi (@BetaHuhn)

More info the README.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

BetaHuhn
Nov 18, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by BetaHuhn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
feature request Idea for a new feature help wanted Extra attention is needed
3 participants