|
@@ -259,9 +259,8 @@ defines **blocks** that child templates can override.
|
|
|
|
|
|
It's easiest to understand template inheritance by starting with an example::
|
|
|
|
|
|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en">
|
|
|
<head>
|
|
|
<link rel="stylesheet" href="style.css" />
|
|
|
<title>{% block title %}My amazing site{% endblock %}</title>
|
|
@@ -313,9 +312,8 @@ in ``base.html`` and replace those blocks with the contents of the child
|
|
|
template. Depending on the value of ``blog_entries``, the output might look
|
|
|
like::
|
|
|
|
|
|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
|
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en">
|
|
|
<head>
|
|
|
<link rel="stylesheet" href="style.css" />
|
|
|
<title>My amazing blog</title>
|