Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.5k stars 281 forks source link

Multiple blocks of same name #843

Closed randomairborne closed 1 year ago

randomairborne commented 1 year ago

This StackOverflow post may describe this better.

Right now, I have this base template:

<meta
      property="og:description"
      content="{% block description %}{% endblock description %}"
    />
    <meta
      name="description"
      content="{% block description %}{% endblock description %}"
    />

I want the descriptions to have the same content (for reasons that should be obvious) but I see no way to duplicate the contents of a block.

randomairborne commented 1 year ago

This dupes #265, however please understand how frustrating it is that there pretty much just isn't a way to deal with this. You're just... out of luck