- A-Z
- Accordion
- Action
- Alert
- Breadcrumbs
- Button
- Card
- Checkboxes
- Cookie banner
- Date input
- Details
- Env
- Filter
- Footer
- Forms
- Group
- Header
- Help
- Hero
- Horizontal rule
- Leave site
- Notification
- Pagination
- Progress
- Radios
- Select
- Signage
- Skip link
- Status
- Steps
- Summary list
- Table
- Tabs
- Text input
- Textarea
- Time input
Env
WIP -- Intended to stop users entering real data into a non production environment
<div class="asp-env">This is a Staging environment for testing purposes only.</div>
Nunjucks macro options
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Name | Type | Description |
---|---|---|
env | string or false (boolean) | Default values are "staging", "local", "production" false (boolean) or null. |
{% from "components/env/macro.njk" import aspEnv %}
{{ aspEnv({
env: "Staging"
}) }}
Twig macro options
Use options to customise the appearance, content and behaviour of a component when using a macro, for example, changing the text.
Some options are required for the macro to work; these are marked as "Required" in the option description.
If you're using Nunjucks macros in production with "html" options, or ones ending with "html", you must sanitise the HTML to protect against cross-site scripting exploits.
Name | Type | Description |
---|---|---|
env | string or false (boolean) | Default values are "staging", "local", "production" false (boolean) or null. |
{% from "components/env/macro.njk" import aspEnv %}
{{ aspEnv({
env: "Staging"
}) }}
Published 24 June 2025
Last updated 26 June 2025