A tour of the templates: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Paulproteus
(Created page with '{{Hacking OpenHatch}} The OpenHatch site has a lot of Django template files. This page explains what they are and how they work together.')
 
imported>Paulproteus
No edit summary
Line 2: Line 2:


The OpenHatch site has a lot of Django template files. This page explains what they are and how they work together.
The OpenHatch site has a lot of Django template files. This page explains what they are and how they work together.

== Background knowledge ==

This page uses the following terminology:

* A ''template file'' is a file (e.g., mysite/base/templates/base/base.html) that usually ends in ".html")
* Our templates make extensive use of template inheritance. You can read more about that in the Django documentation, or in [http://jeffcroft.com/blog/2006/feb/25/django-templates-the-power-of-inheritance/ this nice article]. The inheritance feature lets use replaceable, named ''blocks''.
* The OpenHatch code is broken up into different Django ''apps''. The [http://gitorious.org/openhatch/oh-mainline/blobs/master/LAYOUT LAYOUT file] explains these apps a little bit.

== Begin at the begin: base.html ==

Revision as of 20:15, 14 February 2011

This is a page about improving or modifying OpenHatch.

We call that "Hacking OpenHatch," and there is a whole category of pages about that.


The OpenHatch site has a lot of Django template files. This page explains what they are and how they work together.

Background knowledge

This page uses the following terminology:

  • A template file is a file (e.g., mysite/base/templates/base/base.html) that usually ends in ".html")
  • Our templates make extensive use of template inheritance. You can read more about that in the Django documentation, or in this nice article. The inheritance feature lets use replaceable, named blocks.
  • The OpenHatch code is broken up into different Django apps. The LAYOUT file explains these apps a little bit.

Begin at the begin: base.html