Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from hasgeek/template-fix-166
Browse files Browse the repository at this point in the history
Switch to .html.jinja2 templates, fixes #7
  • Loading branch information
jace authored Oct 16, 2017
2 parents 7ad6aef + e695005 commit 195f9ac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
sudo: false
language: python
cache: pip
python:
- "2.7"
- "pypy"
install:
- pip install -r requirements.txt --use-mirrors
- pip install -r test_requirements.txt --use-mirrors
- pip install -r requirements.txt
- pip install -r test_requirements.txt
script:
- coverage run `which nosetests` listman tests
- ./runtests.sh listman tests
after_success:
- coveralls
notifications:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block titletags -%}
<title>{% block title %}{{ config['SITE_TITLE'] }}{% endblock %}</title>
<meta name="DC.title" content="{{ config['SITE_TITLE'] }}"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "baseframe.html" -%}
{% from "baseframe/components.html" import responsive_networkbar with context %}
{% extends "baseframe.html.jinja2" -%}
{% from "baseframe/components.html.jinja2" import responsive_networkbar with context %}

{% block networkbar %}{{ responsive_networkbar(siteid=config['SITE_ID'], login=config['LASTUSER_CLIENT_ID'] and true or false) }}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion listman/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

@app.route('/')
def index():
return render_template('index.html')
return render_template('index.html.jinja2')

0 comments on commit 195f9ac

Please sign in to comment.