communaute

This commit is contained in:
lucien 2017-09-21 19:24:36 +02:00
parent c83fcadd43
commit ce079fd2f7
2 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def page_not_found(e):
@app.route('/<template_name>')
def pages(template_name='index'):
if Path(f'templates/{template_name}.html').exists():
return render_template(f'{template_name}.html')
return render_template(f'{template_name}.html', meetups=MEETUPS)
abort(404)

View File

@ -2,4 +2,10 @@
{% block main %}
communauté
{% for meetup in meetups %}
<li><a href="{{ url_for('feed', name='meetup_{}'.format(meetup)) }}"></a></li>
{% endfor %}
{% endblock main %}