view docs/templates/default.html @ 411:e7b865f8f335

bake: Enable multiprocess baking. Baking is now done by running a worker per CPU, and sending jobs to them. This changes several things across the codebase: * Ability to not cache things related to pages other than the 'main' page (i.e. the page at the bottom of the execution stack). * Decouple the baking process from the bake records, so only the main process keeps track (and modifies) the bake record. * Remove the need for 'batch page getters' and loading a page directly from the page factories. There are various smaller changes too included here, including support for scope performance timers that are saved with the bake record and can be printed out to the console. Yes I got carried away. For testing, the in-memory 'mock' file-system doesn't work anymore, since we're spawning processes, so this is replaced by a 'tmpfs' file-system which is saved in temporary files on disk and deleted after tests have run.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 12 Jun 2015 17:09:19 -0700
parents f51b69ad09ae
children 61d53d2163d6
line wrap: on
line source

{% import "google.html" as google %}
<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="author" content="Ludovic Chabant">
    <meta name="generator" content="PieCrust {{ piecrust.version }}" />
    <meta name="description" content="PieCrust, a simple website engine and static website generator" />

    <title>{% if page.title %}{{ page.title }} &mdash; {% endif %}PieCrust</title>
    {{ google.webfonts('Lobster') }}
    <link rel="stylesheet" href="{{ site.root }}css/piecrust.css" type="text/css" />
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    {% block head %}{% endblock %}
</head>
<body data-spy="scroll">
    <div id="wrapper">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#piecrust-menu">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="{{site.root}}">PieCrust</a>
                </div>
                <div class="collapse navbar-collapse" id="piecrust-menu">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="{{ pcurl('getting-started') }}">Getting Started</a></li>
                        <li><a href="{{ pcurl('docs') }}">Documentation</a></li>
                        <li><a href="{{ pcurl('code') }}">Code</a></li>
                        <li><a href="{{ pcurl('support') }}">Support</a></li>
                    </ul>
                </div>
            </div>
        </nav>
        {% block header %}
        <header{% if page.header_class %} class="{{page.header_class}}"{% endif %}>
            <h1>{{ page.title }}</h1>
        </header>
        {% endblock %}
        {% block content %}
        <section class="container" id="content">
        {{ content|safe }}
        </section>
        {% endblock %}
        <footer>
            <p>&copy;2014 &mdash; {{ piecrust.branding|safe }}</p>
        </footer>
    </div>
    {{ piecrust.debug_info|safe }}
    <script src="{{ site.root }}js/piecrust.js"></script>
    {% if baker.is_baking %}
    {{ google.analytics("UA-3426592-10") }}
    {% endif %}
</body>
</html>