Commits

Thomas Waldmann  committed 51e077f

revert changset 50cc68af8874 because of issues

itemviews (and maybe other templates) need the context, so "without context"
gives wrong results.

Armin Ronacher told to fix the "with context" pypy performance issue in jinja2,
so we'll just wait for that.

  • Participants
  • Parent commits 50cc68a

Comments (0)

Files changed (3)

File MoinMoin/templates/base.html

 <!DOCTYPE html>{# this is html5, xmlish variant #}
-{%- import "snippets.html" as snippets without context %}
+{%- import "snippets.html" as snippets with context %}
 {%- set head = snippets.head() %}
 {%- set scripts = snippets.scripts() %}
 {%- set stylesheets = snippets.stylesheets() %}

File MoinMoin/templates/layout.html

-{% import "forms.html" as forms without context %}
+{% import "forms.html" as forms %}
 {% extends "base.html" %}
 
-{% import "snippets.html" as snippets without context %}
+{% import "snippets.html" as snippets with context %}
 {% set logo = snippets.logo() %}
 {% set before_header = snippets.before_header() %}
 {% set after_header = snippets.after_header() %}

File MoinMoin/templates/show.html

     {%- endif %}
 {% endblock %}
 
-{% import "itemviews.html" as itemviews without context %}
+{% import "itemviews.html" as itemviews with context %}
 
 {% block header_itemviews %}
     {{ itemviews }}