Andriy Kornatskyy avatar Andriy Kornatskyy committed 4e18874

Improved templates to preserve meaningful whitespace.

Comments (0)

Files changed (5)

demos/template/content/templates-wheezy/shared/snippet/menu-header.html

 @def menu_item(route_name, title):
     @# ignore
     @if route_name == route_args.route_name:
-        <li class="active">\
+        <li class="active"> \
     @else:
-        <li>\
+        <li> \
     @end
     <a href="@path_for(route_name)">@title</a></li>\
 @end

demos/template/content/templates-wheezy/shared/snippet/menu-locale.html

 @require(path_for, route_args)
-<i><a href="@path_for(route_args.route_name, locale='en')"
-        >English</a> | <a
-        href="@path_for(route_args.route_name, locale='ru')"
-        >Russian</a></i>
+<i>
+    <a href="@path_for(route_args.route_name, locale='en')">English</a> | \
+    <a href="@path_for(route_args.route_name, locale='ru')">Russian</a>
+</i>

demos/template/content/templates-wheezy/shared/snippet/menu-signin.html

 @require(principal, path_for)
 @if principal:
-Welcome <b>@principal.alias!h</b>!
-[<a href="@path_for('signout')">Sign out</a>]
+Welcome <b>@principal.alias!h</b>! [
+<a href="@path_for('signout')">Sign out</a>]
 @else:
 [<a href="@path_for('signin')">Sign in</a>]
 @end

demos/template/setup.py

 install_requires = [
     'wheezy.core>=0.1.70',
     'wheezy.caching>=0.1.54',
-    'wheezy.html>=0.1.101',
+    'wheezy.html>=0.1.106',
     'wheezy.http>=0.1.236',
     'wheezy.routing>=0.1.124',
     'wheezy.security>=0.1.36',
     'wheezy.validation>=0.1.74',
-    'wheezy.web>=0.1.251',
+    'wheezy.web>=0.1.259',
 ]
 
 try:
             'jinja2>=2.6'
         ],
         'wheezy.template': [
-            'wheezy.template>=0.1.47'
+            'wheezy.template>=0.1.75'
         ]
     },
 
 install_requires = [
     'wheezy.core>=0.1.70',
     'wheezy.caching>=0.1.54',
-    'wheezy.html>=0.1.101',
+    'wheezy.html>=0.1.106',
     'wheezy.http>=0.1.236',
     'wheezy.routing>=0.1.124',
     'wheezy.security>=0.1.36',
             'jinja2>=2.6'
         ],
         'wheezy.template': [
-            'wheezy.template>=0.1.34'
+            'wheezy.template>=0.1.75'
         ]
     },
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.