Module perseus::build[][src]

Expand description

Utilities for building your app.

Functions

Runs the build process of building many templates for the given locales data, building directly for all supported locales. This is fine because of how ridiculously fast builds are.

Builds a template, writing static data as appropriate. This should be used as part of a larger build process. This returns both a list of the extracted render options for this template (needed at request time), a list of pages that it explicitly generated, and a boolean as to whether or not it only generated a single page to occupy the template’s root path (true unless using using build-time path generation).

Runs the build process of building many different templates for a single locale. If you’re not using i18n, provide a Translator::empty() for this. You should only build the most commonly used locales here (the rest should be built on demand).