Sha256: b1f330b375b80e95e8ec1f9e527b962b86d3008bccb4fba5c13bde220d90b770
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 Bytes
Contents
# frozen_string_literal: true module Katalyst module GOVUK module Formbuilder module Frontend # rubocop:disable Rails/OutputSafety def govuk_formbuilder_init tag.script type: "module", nonce: request.content_security_policy_nonce do <<~JS.html_safe document.body.classList.add("js-enabled"); import {initAll} from "@katalyst/govuk-formbuilder"; initAll(); JS end end # rubocop:enable Rails/OutputSafety end end end end
Version data entries
6 entries across 6 versions & 1 rubygems