Pooyan
12/09/2023, 8:28 PMMarvin
12/09/2023, 8:28 PM{{ }}
) in prefect.yaml
.
To include {{ variable_name }}
as a part of a string without having it parsed as a Jinja template in Prefect 2.x, you typically need to use escape sequences. In most templating contexts, you would double the curly braces to escape them, like this: {{ "{{ variable_name }}" }}
. However, if this is not working and the standard Jinja {% raw %}
and {% endraw %}
syntax is throwing an error, then there's another method you can try. You can use a YAML multiline string, which may help in avoiding the template parsing:
yaml
parameter:
value: |
{{ "{{ variable_name }}" }}
If none of these solutions work for your specific use case, it might require a deeper look into the Prefect documentation or reaching out to the Prefect community for advice. If you would like me to search Prefect's documentation for you, let me know!