Module content

Source

Structs§

ContentDirectory
A filesystem directory containing content.
FilesystemBasedContentEngine
A ContentEngine that serves files from a ContentDirectory.
Media
A piece of rendered content along with its media type.
MediaType
See IETF RFC 2046.
RenderContext
Values used during rendering, including the data passed to handlebars templates and executables.
RenderData
Data passed to handlebars templates and executables.
RequestData
Render data that comes from requests.
Route
A canonicalized absolute URI path.
TemplateError
Indicates that a handlebars template could not be registered.
UnregisteredTemplate
An anonymous handlebars template that is not from the content directory.

Enums§

ContentIndex
A hierarchial tree mapping out content in the registry. Does not actually contain content items, just their routes.
ContentLoadingError
Indicates that there was a problem loading content from the filesystem.
RegisteredContent
A renderable item from the content directory.
RenderError
Indicates that it was not possible to produce rendered output, either because rendering was attempted and failed or because no acceptable media types are available.
StreamError
Indicates that something went wrong after starting to stream content.

Traits§

ByteStream
ContentEngine
Render

Type Aliases§

ContentRepresentations
Alternative representations of the same resource.
MediaRange
See IETF RFC 7231.