pallet.template documentation

Template file writing

find-template

fn

[path session]

Find a template for the specified path, for application to the given node. Templates may be specialised.

get-resource

fn

[path]

Loads a resource. Returns a URI.

interpolate-template

fn

[path values session]

Interpolate the given template.

path-components

fn

[path]

Split a resource path into path, basename and extension components.

pathname

fn

[path file ext]

Build a pathname from a list of path and filename parts. Last part is assumed to be a file extension.

'The name of a resource is a '/'-separated path name that identifies the resource.'