forked from AFPy/afpy.org
communaute
This commit is contained in:
parent
c83fcadd43
commit
ce079fd2f7
2
afpy.py
2
afpy.py
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user