From 373615b02063b80a375efd0a2895a3090b2ba345 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 22 Jul 2013 14:14:44 -0300 Subject: [PATCH] starting the templates --- lyrics/blueprints/index.py | 2 +- lyrics/templates/base.tpl | 71 ++++++++++++++++++++++++++++++++++++++ lyrics/templates/index.tpl | 6 ++++ 3 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 lyrics/templates/base.tpl create mode 100644 lyrics/templates/index.tpl diff --git a/lyrics/blueprints/index.py b/lyrics/blueprints/index.py index f62207d..a2727be 100644 --- a/lyrics/blueprints/index.py +++ b/lyrics/blueprints/index.py @@ -8,4 +8,4 @@ index = Blueprint('index', __name__) @index.route('/') def root(): - return render_template('index.html') + return render_template('index.tpl') diff --git a/lyrics/templates/base.tpl b/lyrics/templates/base.tpl new file mode 100644 index 0000000..22fe383 --- /dev/null +++ b/lyrics/templates/base.tpl @@ -0,0 +1,71 @@ + + + + + LyricsPOP + + + + + + + + + + + + + +
+ {% block content %} + content goes here! + {% endblock content %} +
+ + + + + + + + + + +{# vim:set ft=htmldjango: #} diff --git a/lyrics/templates/index.tpl b/lyrics/templates/index.tpl new file mode 100644 index 0000000..acbe998 --- /dev/null +++ b/lyrics/templates/index.tpl @@ -0,0 +1,6 @@ +{% extends "base.tpl" %} + +{% block content %} + Welcome to LyricsPOP. +{% endblock content %} +{# vim:set ft=htmldjango: #}