Issue on using Jinja2 code in footer


When I try to setup the footer of letter head, I have some issue on using Jinja2 code.

My code is here

        opacity: 0.75;

<div class="foo_text">
    <p>Company_name Copyright (c) 2021 {}</p>

And I received errors when I do print like this

Traceback (most recent call last):
  File "apps/frappe/frappe/utils/", line 86, in render_template
    return get_jenv().from_string(template).render(context)
  File "env/lib/python3.6/site-packages/jinja2/", line 941, in from_string
    return cls.from_code(self, self.compile(source), globals, None)
  File "env/lib/python3.6/site-packages/jinja2/", line 638, in compile
  File "env/lib/python3.6/site-packages/jinja2/", line 832, in handle_exception
  File "env/lib/python3.6/site-packages/jinja2/", line 28, in reraise
    raise value.with_traceback(tb)
  File "", line 9, in template
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 'frappe'.

{{variable_name}} is just fine I tested.
So Please advise.


If you check the doc

{{ }}

Does it work ?

That works awesome.