Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from hasgeek/update-template
Browse files Browse the repository at this point in the history
replace .html with .html.jinja2
  • Loading branch information
StephanieBr authored Oct 13, 2017
2 parents 6f5f6d8 + 74d2515 commit 2dad6f2
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "layout.html" %}
{% from "macros.html" import postlist %}
{% extends "layout.html.jinja2" %}
{% from "macros.html.jinja2" import postlist %}
{% 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 flash_messages with context %}
{% extends "baseframe.html.jinja2" -%}
{% from "baseframe/components.html.jinja2" import flash_messages with context %}

{% block messages %}{# Don't use baseframe's messages #}{% endblock %}
{% block baseheadline %}{# Don't use baseframe's headline #}{% endblock %}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "layout.html" %}
{% from "commentease/macros.html" import comments, ajaxcomments %}
{% extends "layout.html.jinja2" %}
{% from "commentease/macros.html.jinja2" import comments, ajaxcomments %}
{% block title %}{{ post.title }}{% endblock %}
{% block content %}
{%- if post.url %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "layout.html" %}
{% from "macros.html" import postlist %}
{% extends "layout.html.jinja2" %}
{% from "macros.html.jinja2" import postlist %}
{% block title %}{{ profile.title }}{% endblock %}
{% block content %}
{{ postlist(profile.posts, profile=profile) }}
Expand Down
2 changes: 1 addition & 1 deletion hasnew/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


@app.route('/')
@render_with('index.html')
@render_with('index.html.jinja2')
def index():
posts = Post.query.order_by(Post.created_at.desc()).limit(100).all()
return {'posts': posts}
2 changes: 1 addition & 1 deletion hasnew/views/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@app.route('/<profile>/<post>')
@render_with('post.html')
@render_with('post.html.jinja2')
@load_models(
(Profile, {'name': 'profile'}, 'profile'),
(Post, {'url_name': 'post', 'profile': 'profile'}, 'post')
Expand Down
2 changes: 1 addition & 1 deletion hasnew/views/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


@app.route('/<profile>')
@render_with('profile.html')
@render_with('profile.html.jinja2')
@load_model(Profile, {'name': 'profile'}, 'profile')
def profile_view(profile):
if g.user:
Expand Down

0 comments on commit 2dad6f2

Please sign in to comment.