Skip to content

Instantly share code, notes, and snippets.

@robpataki
Created November 15, 2018 14:27
Show Gist options
  • Save robpataki/0207bebd35f616de02d6fee6c92289ad to your computer and use it in GitHub Desktop.
Save robpataki/0207bebd35f616de02d6fee6c92289ad to your computer and use it in GitHub Desktop.
Nunjucks snippets
{# Conditionally render inline CSS class #}
<div class="govuk-grid-row {{ 'govuk-!-margin-top-9' if not(showBackButton) else 'govuk-!-margin-top-3' }}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment