vscode-djaneiro icon indicating copy to clipboard operation
vscode-djaneiro copied to clipboard

Linking between template files

Open JostCrow opened this issue 7 years ago • 2 comments

I know that this is a big request. But is it possible to do the linking between the django template files using the extends and the include tags?

This is also implemented in pycharm. I don't know how hard this is to implement. I just thought it could be a nice edition

JostCrow avatar Nov 10 '17 09:11 JostCrow

Please, can you write an example?

supadrupa avatar Dec 09 '17 22:12 supadrupa

What I meant with my ticket is that the include tag template_name links to the other template. With ctrl + click it will open the file templates/includes.html.

templates/master.html

<div>
    {% include 'includes/header.html %}
</div>

templates/includes/header.html

<nav>Menu</nav>

JostCrow avatar Dec 11 '17 15:12 JostCrow