## Generated by Codox

# Youyesyet 0.2.2-SNAPSHOT

# youyesyet.layout

Render web pages using Selmer templating markup.

### *app-context*

#### dynamic

TODO: write docs

view source

### *user*

#### dynamic

The current user, in circumstances in which we do not have a session. Normally the user is held on a key in the session.

TODO: is this necessary? Is it safe?

view source

### error-page

`(error-page error-details)`

error-details should be a map containing the following keys: :status - error status :title - error title (optional) :message - detailed error message (optional) returns a response map with the error page as the body and the status specified by the status key

view source

### get-user-roles

Return, as a set, the names of the roles of which this `user` is a member.

view source

### render

`(render template & [params])`

renders the HTML `template` located relative to resources/templates in the context of this session and with these parameters.

view source

### render-with-session

`(render-with-session template session & [params])`

renders the HTML `template` located relative to resources/templates in the context of this session and with these parameters.

view source