diff options
author | David Stanek <dstanek@dstanek.com> | 2012-11-04 07:35:42 -0500 |
---|---|---|
committer | David Stanek <dstanek@dstanek.com> | 2012-11-04 07:43:16 -0500 |
commit | d812e14d8678dad36c090b36280dccd22d5aeb67 (patch) | |
tree | 6e490d31e07461828ed2451118b516a541aaa79c /codemash | |
parent | 9837da08416b3afba0c594b3f1b71795c9576654 (diff) | |
download | django-precompiler-2.hello-inheritance.tar.bz2 django-precompiler-2.hello-inheritance.tar.xz django-precompiler-2.hello-inheritance.zip |
hello world with inheritance2.hello-inheritance
Diffstat (limited to 'codemash')
-rw-r--r-- | codemash/templates/base.html | 11 | ||||
-rw-r--r-- | codemash/templates/index.html | 18 |
2 files changed, 19 insertions, 10 deletions
diff --git a/codemash/templates/base.html b/codemash/templates/base.html new file mode 100644 index 0000000..bb85256 --- /dev/null +++ b/codemash/templates/base.html | |||
@@ -0,0 +1,11 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>Hello Codemash: {% block title %}TODO: add custom content using child templates{% endblock %}</title> | ||
5 | </head> | ||
6 | <body> | ||
7 | <div id="header">...header...</div> | ||
8 | {% block main %}TODO: add custom content using child templates{% endblock %} | ||
9 | <div id="footer">...footer...</div> | ||
10 | </body> | ||
11 | </html> | ||
diff --git a/codemash/templates/index.html b/codemash/templates/index.html index ba0a13a..29c949d 100644 --- a/codemash/templates/index.html +++ b/codemash/templates/index.html | |||
@@ -1,10 +1,8 @@ | |||
1 | <!DOCTYPE html> | 1 | {% extends "base.html" %} |
2 | <html> | 2 | |
3 | <head> | 3 | {% block title %}Hello{% endblock %} |
4 | <title>Hello Codemash!</title> | 4 | |
5 | </head> | 5 | {% block main %} |
6 | <body> | 6 | <h1>It worked!</h1> |
7 | <h1>It worked!</h1> | 7 | <h2>Congratulations on your second Django-powered page.</h2> |
8 | <h2>Congratulations on your second Django-powered page.</h2> | 8 | {% endblock %} |
9 | </body> | ||
10 | </html> | ||