Module containing rendering functions. All these functions are used to
render files to the
This is the most simple render action. You render a
Context with a
template, and get back the result.
Context with the given templates, then concatenate the
result. So, basically this function:
- Takes every
- Renders every
Contextwith all given templates. This is comparable with a renderChain action.
- Concatenates the result and returns that as a
Chain a render action for a page with a number of templates. This will also write the result to the site destination. This is the preferred way to do general rendering.
renderChain [ "templates/notice.html" , "templates/default.html" ] $ createPagePath "warning.html"
This code will first render
and will then render the result with
Mark a certain file as static, so it will just be copied when the site is generated.