A tour of the templates: Difference between revisions

no edit summary
imported>Paulproteus
imported>Paulproteus
No edit summary
 
Line 9:
* 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 [httphttps://gitoriousgithub.orgcom/openhatch/oh-mainline/blobsblob/master/LAYOUT LAYOUT file] explains these apps a little bit.
 
== Who should read this? ==
Line 20:
== Begin at the begin: base.html ==
 
All web pages that render into HTML eventually extend from base.html. You can look at the [httphttps://gitoriousgithub.orgcom/openhatch/oh-mainline/blobsblob/master/mysite/base/templates/base/base.html current version in GitoriousGithub, on the web].
 
=== Important template blocks in the <head> of the document ===
Anonymous user