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

Multiple extends #17

Open
codrin-iftimie opened this issue Sep 20, 2015 · 5 comments
Open

Multiple extends #17

codrin-iftimie opened this issue Sep 20, 2015 · 5 comments
Assignees

Comments

@codrin-iftimie
Copy link

a.html

<!-- @@master master.html -->
<!-- @@block m_header-->
    <!-- @@include b.html -->
<!-- @@close -->

b.html

<!-- @@master master2.html -->
<!-- @@block m2_header-->
    <something></something>
<!-- @@close -->

I'm currently trying to extend an included template as above. Any idea why master2 is not included and extended?

@FrankFang
Copy link
Owner

It's not supported.
Including works before extending. So a.html equals

<!-- @@master master.html -->
<!-- @@block m_header-->
    <!-- @@master master2.html -->
    <!-- @@block m2_header-->
    <something></something>
    <!-- @@close -->
<!-- @@close -->

@FrankFang
Copy link
Owner

Why Multiple extendings?
What's your use cases?

@codrin-iftimie
Copy link
Author

I'm trying to create a jinja2 template out of multiple html files. This template has like a switch statement inside of it that imports other resources. It would help a great deal to extend some of these imports...
I can make a PR in the next days depending on how much free time I have.

Would such a feature interest you?

@FrankFang
Copy link
Owner

It sounds reasonable. It does not take much time. Let me see what I can do.

@prium
Copy link

prium commented Oct 27, 2015

Hi Frank, this would be very helpful for me too. I am trying to do the same thing. Could you please help?

@FrankFang FrankFang self-assigned this Oct 27, 2015
@FrankFang FrankFang added this to the v2.0.0 milestone Oct 27, 2015
@FrankFang FrankFang removed this from the v2.0.0 milestone Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants