I have a tag that has a variable that is a string with an embeded variable. Is there a better way to evaluate it than:
{% custom_extends "this_{{is.a.test}}" %}
— backend
string_with_variable = "this_{{is.a.test}}"
result = Template(string_with_variable).render(context)
This works, but i wasn’t sure if there was any lower level function that does the same.
The answer is no. As of right now if you want to resolve/render a string you need to instantiate a
Templateand call render with your context.