module Content
Builds middleware for serving filesystem-backed dynamic content.
Classes and Modules
class Builder < XRB::BuilderA builder for rendering Utopia content that extends XRB::Builder with Utopia-specific functionality.
class UnbalancedTagError < StandardErrorThis error is raised if a tag doesn't match up when parsing.
class Document < ResponseA single request through content middleware. We use a struct to hide instance varibles since we instance_exec within this context.
class LinkRepresents a link to some content with associated metadata.
class LinksA collection of links resolved from the filesystem content hierarchy.
class SymbolicHash < HashA hash which forces all keys to be symbols and fails with KeyError when strings are used.
class MarkupParserProvides a high level interface for parsing markup.
class Middleware < Protocol::HTTP::MiddlewareA middleware which serves dynamically generated content based on markup files.
module NamespaceA namespace which contains tags which can be rendered within a
class Utopia::Content::Document.class NodeRepresents an immutable node within the content hierarchy.
class ResponseA basic content response, including useful defaults for typical HTML5 content.
module TagsTags which provide intrinsic behaviour within the content middleware.
Definitions
XNODE_EXTENSION = ".xnode"
The file extension for markup nodes on disk.
def self.new(...)
Construct content middleware.
Signature
-
returns
Content::Middleware The content middleware.
Implementation
def self.new(...)
Middleware.new(...)
end