Module: Utopia::Content

Defined in:
lib/utopia/content.rb,
lib/utopia/content/link.rb,
lib/utopia/content/node.rb,
lib/utopia/content/tags.rb,
lib/utopia/content/links.rb,
lib/utopia/content/markup.rb,
lib/utopia/content/builder.rb,
lib/utopia/content/document.rb,
lib/utopia/content/response.rb,
lib/utopia/content/namespace.rb,
lib/utopia/content/middleware.rb

Overview

Builds middleware for serving filesystem-backed dynamic content.

Defined Under Namespace

Modules: Namespace, Tags Classes: Builder, Document, Link, Links, MarkupParser, Middleware, Node, Response, SymbolicHash, UnbalancedTagError

Constant Summary collapse

XNODE_EXTENSION =

The file extension for markup nodes on disk.

".xnode"
INDEX =
"index"
Tag =
XRB::Tag
DEFERRED_TAG_NAME =
"utopia:deferred".freeze
EXPIRES =
"expires".freeze
CACHE_CONTROL =
"cache-control".freeze
CONTENT_TYPE =
"content-type".freeze
NO_CACHE =
"no-cache".freeze

Class Method Summary collapse

Class Method Details

.newObject

Construct content middleware.



13
14
15
# File 'lib/utopia/content.rb', line 13

def self.new(...)
	Middleware.new(...)
end