API Reference Outerfaces Dependency Distribution (ODD) v0.2.5

View Source

Modules

Documentation for Outerfaces.Odd.

Custom endpoint loader for Outerfaces projects.

A plug for setting Content Security Policy headers on responses. To configure the CSP, pass a map of key-value pairs to the plug.

ServeIndex plug to handle both static asset requests and index.html fallback. Handles CDN consumer requests.

A plug for setting Content Security Policy headers on responses.

Transforms CSS @import statements by rewriting CDN tokens.

Provides HTML transformation functions for rewriting [OUTERFACES_ODD_CDN] and [OUTERFACES_ODD_SPA] tokens in HTML src/href attributes.

Transforms JavaScript import/export statements by rewriting CDN and SPA tokens.

Plug for setting cache headers based on rev-pinned URL matching.

Plug that serves the current revision as JSON at /__outerfaces__/rev.json.

Plug for parsing and validating rev-pinned URLs.

Manages the current revision identifier for rev-pinned asset serving.

Canonical URL path builder for rev-pinned assets.

Mix Tasks

Copies the (for now) hello_world example project to the app's outerfaces/projects directory. Options: name=my_new_outerfaces_project

Vendor a JS library into the app's outerfaces/projects/odd_cdn directory.

Strip comments from the .js files under a directory, in place.