diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-22 07:44:02 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-22 07:44:02 +0100 |
commit | 75c976afcee30c23a3fa42762ffad52abaeab8f1 (patch) | |
tree | 5d48540b3f35ffd766e09a34054e945aaefc2b2e | |
parent | Created new branch "Mako integration". First test of Mako with the plain_text... (diff) | |
download | newspipe-75c976afcee30c23a3fa42762ffad52abaeab8f1.tar.gz newspipe-75c976afcee30c23a3fa42762ffad52abaeab8f1.tar.bz2 newspipe-75c976afcee30c23a3fa42762ffad52abaeab8f1.zip |
Now using template inheritance.
-rw-r--r-- | source/templates/base.html | 15 | ||||
-rw-r--r-- | source/templates/plain_text.html | 15 |
2 files changed, 18 insertions, 12 deletions
diff --git a/source/templates/base.html b/source/templates/base.html new file mode 100644 index 00000000..54cfc524 --- /dev/null +++ b/source/templates/base.html @@ -0,0 +1,15 @@ +## base.html +<!DOCTYPE html> +<html> +<head> + <title>pyAggr3g470r - News aggregator</title> + <link rel="stylesheet" type="text/css" href="/css/style.css" /> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> +</head> +<body> + +${self.body()} + +</body> +</html>
\ No newline at end of file diff --git a/source/templates/plain_text.html b/source/templates/plain_text.html index 8bd606de..3076e5bb 100644 --- a/source/templates/plain_text.html +++ b/source/templates/plain_text.html @@ -1,12 +1,5 @@ -<!DOCTYPE html> -<html> -<head> - <title>pyAggr3g470r - News aggregator</title> - <link rel="stylesheet" type="text/css" href="/css/style.css" /> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> -</head> -<body> +## plain_text.html +<%inherit file="base.html"/> <div class="left inner"> <h1><i>${article_title}</i> from <a href="/articles/%s">${feed_title}</a></h1><br /> ${description} @@ -14,6 +7,4 @@ <p>This software is under GPLv3 license. You are welcome to copy, modify or redistribute the source code according to the <a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p> -</div> -</body> -</html> +</div>
\ No newline at end of file |