Source

garter / docs / templates / base.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      {% block xmlns -%}
          xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
          xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
          xmlns:dc="http://purl.org/dc/elements/1.1/"
          xmlns:foaf="http://xmlns.com/foaf/0.1/"
      {%- endblock %}>
      
      {% import "macros/html" as html -%}
      {% import "macros/crumbs" as breadcrumbs with context -%}
  
    <head>
        {% block head %}
            
            {% block meta %}
                <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
            {% endblock %}
            
            <title>
                {% block title_prefix -%}
                    {{ config['wiki-name']|e }} »
                {%- endblock %}
                {% block title -%}
                    {{ title }}
                {%- endblock %}
            </title>
            
            {% block css %}
                <!-- YUI CSS reset, fonts, base -->
                {{ html.cssimport(("http://yui.yahooapis.com/combo?" +
                                   "3.0.0/build/cssreset/reset-min.css&" +
                                   "3.0.0/build/cssfonts/fonts-min.css&" +
                                   "3.0.0/build/cssbase/base-min.css") | e) }}
                
                {{ html.cssimport(make_relative("/media/css/style.css")) }}
                {{ html.cssimport(make_relative("/media/css/pygments.css")) }}
                {{ html.cssimport(make_relative("/media/css/garter.css")) }}
            {% endblock %}
            
            
            {% block js %}{% endblock %}
        {% endblock head %}
    </head>
    
    <body {% block body_attrs %}{% endblock %}>
        {% block body %}
            {% block body_header %}
                {% block crumbs %}
                    {{ breadcrumbs.crumbs(crumbs) }}
                {% endblock crumbs %}
            {% endblock body_header %}
            
            <div id="content">
                {% block content_header %}
                {% endblock content_header %}
                
                {% block content %}
                {% endblock content %}
                
                {% block content_footer %}
                {% endblock content_footer %}
                
                <hr class="clear" />
            </div>
            
            {% block body_footer %}
                <div id="footer">
                    <p>
                        <a href="http://sjl.bitbucket.org/garter/">Garter</a>
                        was lovingly crafted by
                        <a href="http://stevelosh.com/">Steve Losh</a>.
                        The documentation is powered by
                        <a href="http://markdoc.org/">Markdoc</a>.
                    </p>
                </div>
            {% endblock body_footer %}
        {% endblock body %}
        
        <hr class="clear" />
    </body>
</html>