-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Jinja line statements and comments #42930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
c770ba3
0373f90
87a1154
eb713c6
9215969
69d241c
23e1b23
0bbb23d
2dc593b
e2155c2
78fd3f9
7c78a02
7091f8e
19dcfcf
470265e
111df31
c67db52
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1924,6 +1924,42 @@ the cloud profile or master config file, no templating will be performed. | |
|
|
||
| userdata_template: jinja | ||
|
|
||
| .. conf_master:: jinja_line_statement_prefix | ||
|
|
||
| ``jinja_line_statement_prefix`` | ||
| --------------------- | ||
|
|
||
| .. versionadded:: Oxygen | ||
|
|
||
| Default: ``''`` | ||
|
|
||
| If this is set to a string that is not empty, any line starting with this prefix | ||
| will be interpreted as a line statement by the jinja renderer. | ||
| Defaults to ``''`` and corresponds | ||
|
||
| to the Jinja environment init variable ``line_statement_prefix``. | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| jinja_line_statement_prefix: '' | ||
|
||
|
|
||
| .. conf_master:: jinja_line_comment_prefix | ||
|
|
||
| ``jinja_line_comment_prefix`` | ||
| --------------------- | ||
|
||
|
|
||
| .. versionadded:: Oxygen | ||
|
|
||
| Default: ``''`` | ||
|
|
||
| If this is set to a string that is not empty, any line starting with this prefix | ||
| will be interpreted as a line comment by the jinja renderer. | ||
| Defaults to ``''`` and corresponds | ||
| to the Jinja environment init variable ``line_comment_prefix``. | ||
|
|
||
| .. code-block:: yaml | ||
|
|
||
| jinja_line_comment_prefix: '' | ||
|
|
||
| .. conf_master:: jinja_trim_blocks | ||
|
|
||
| ``jinja_trim_blocks`` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend the dashed line to match the length of the line above. Using different lengths won't make docs builds fail, but it will muddy the output with a warning.