Using mako instructions inside head-extra.html

Hello everybody,
I’m not sure if it was better to post this on development category but I preferred it to be here because it’s not about Open edX development and I believe that it is just a customization. so my apologize if I’m wrong.

Below is the content of my head-extra.html file which is placed in ‘my-theme/lms/templates’ directory:

<%namespace name='static' file='static_content.html'/>

<link rel="stylesheet" type="text/css" href="${static.url('css/gtc-custom.css')}" />

the problem is that the first line is in mako format and is printed as it is when the file is included in django templates (main_django.html).
Could you help me to solve this?
Is this wrong to use mako / django template instructions inside head-extra.html?

I am not really and expert here, just trying to help, but can you try setting this in the first line of the template?

## mako

That’s specified in the MakoLoader (