Ever wanted to render nunjucks macros from Ruby? Neither have I, until half an hour ago.
Here's a quick approach using the excellent Schmooze from Shopify.
Save nunjucks.rb
in a new directory then:
npm install govuk-frontend nunjucks
bundle init && echo "gem 'schmooze'" >> Gemfile && bundle