Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking between template files #7

Open
JostCrow opened this issue Nov 10, 2017 · 2 comments
Open

Linking between template files #7

JostCrow opened this issue Nov 10, 2017 · 2 comments

Comments

@JostCrow
Copy link

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

@supadrupa
Copy link
Contributor

Please, can you write an example?

@JostCrow
Copy link
Author

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants