mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-16 01:26:24 +00:00
32 lines
1,007 B
Markdown
32 lines
1,007 B
Markdown
---
|
|
title: Template fields
|
|
description: Explain Renovate template fields
|
|
---
|
|
|
|
# Template fields
|
|
|
|
In order to provide flexible configuration, Renovate supports using "templates" for certain fields like `branchName`.
|
|
|
|
Renovate's templates use [handlebars](https://handlebarsjs.com/) under the hood.
|
|
You can recognize templates when you see strings like `{{depName}}` in configuration fields.
|
|
|
|
Below you can find lists of fields/values that you can use in templates.
|
|
Some are configuration options passed through, while others are generated as part of Renovate's run.
|
|
|
|
## Exposed config options
|
|
|
|
<!-- Automatically insert exposed configuration options here -->
|
|
|
|
## Other available fields
|
|
|
|
<!-- Insert runtime fields here -->
|
|
|
|
## Additional Handlebars helpers
|
|
|
|
### stringToPrettyJSON
|
|
|
|
If you want to print pretty JSON with Handlebars you can use the built-in function `stringToPrettyJSON` like this:
|
|
|
|
`{{{stringToPrettyJSON myvar}}}`
|
|
|
|
In the example above `myvar` is a variable/field, that contains valid JSON.
|