Permalink
Browse files

Add base template

  • Loading branch information...
1 parent 94c1c9a commit ac150b48442417475eeb74d2abf881442ce3c879 @tiwilliam tiwilliam committed Jun 11, 2012
Showing with 41 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +30 −0 templates/base.html
  3. +4 −1 templates/index.html
  4. +5 −1 templates/signup.html
View
@@ -8,6 +8,8 @@ build
eggs
parts
bin
+env
+python
var
sdist
develop-eggs
View
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ {% block head %}
+ <title>Teamstarter - {% block title %}Get your idea going{% endblock %}</title>
+ <link rel="stylesheet" href="/static/css/base.css" />
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ {% endblock %}
+</head>
+<body>
+<div id="header">
+ {% block header %}{% endblock %}
+</div>
+<div id="content">
+ {% block content %}{% endblock %}
+</div>
+<div id="footer">
+ {% block footer %}{% endblock %}
+</div>
+</body>
+</html>
@@ -1 +1,4 @@
-Hello!
+{% extends "base.html" %}
+{% block content %}
+ Hello index!
+{% endblock %}
@@ -1 +1,5 @@
-Signup
+{% extends "base.html" %}
+{% block title %}Signup to realize your dream{% endblock %}
+{% block content %}
+ Hello signup!
+{% endblock %}

0 comments on commit ac150b4

Please sign in to comment.