Admin layout example
With custom js filename for es6 components
An alternative JS filename can be used in place of the default es6-components.js if required (note that this cannot easily be demonstrated here).
How it looks (preview)
<!DOCTYPE html>
<html lang="en" class="govuk-template govuk-template--rebranded">
<head>
<meta charset="utf-8">
<title>A page title - GOV.UK Publishing</title>
<meta name="robots" content="noindex,nofollow,noimageindex">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="11HrCA93I0FuNHY7m6Fd7yklrkDkyd7SIFnht8X8pH02GdK2d69S7VYBkRtzhCaqmC4MpGHggGYT2ST6p6fRaw" />
<link rel="icon" type="image/x-icon" href="/assets/govuk_publishing_components/favicon-production-0a27a2c911a5ea18c85567dd42b35bb014640500dbf9465d66096518ec827a9e.png" />
<link rel="stylesheet" href="/assets/application-2155c7e633fe220ba0c2d3c5049d064d6a0ea6fe7e558efbff9c4aef61fcef7b.css" media="all" />
</head>
<body class="gem-c-layout-for-admin govuk-template__body">
<script nonce="jN69cUejLPopw5YEAzigzw==">
//<![CDATA[
document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
//]]>
</script>
<!-- You probably want to use the header, main & footer components here -->
<script src="/assets/application-39201a740741f1c8f16a25cf1fd2069e3942a07fa6d2423cc156c80be27dae19.js"></script>
</body>
</html>
How to call this example
<%= render "govuk_publishing_components/components/layout_for_admin", {
environment: "production",
product_name: "Publishing",
browser_title: "A page title",
js_module_filename: "es6-bundle"
} do %>
<!-- You probably want to use the header, main & footer components here -->
<% end %>