Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
node-sitefile / example / main.md
Size: Mime:

Examples

Also see browser JavaScript console for proof of concept. Extensions are mapped to one handler, no content negotiation. Also paths with extensions may be forcefully redirected to the published variants.

The current implementation maps a path extension to an Express handler. There is little in the sense of true resources yet, the content is served with the local path without extension as the URL. No negotiation, and most routers are rather primitive and don't do much with headers or a lot of input sanitizing and error handling.

Paremeterization

Routers can inspect the entire application context.

The resource context is initialized with a 'route.options' attribute to hold any custom data. The data is loaded from the Sitefile if given.

Router modules have an defaults attribute, this can also provide default 'route.options'.

Query to handler options

Graphviz

From Graphviz dotguide

Small dot graph

Fancy dot graph

Polygonal labels dot graph

Record labels dot graph

HTML-like tables dot graph

Hash table dot graph

Constrained dot graph

Binary search tree dot graph

Process diagram with clusters

Call graph

Graph with edges on clusters