Styling with Law Widgets
Adding styles to the document content.
In this section
Law Widgets
<html>
<head>
<title>{{ expression.title }}</title>
<!-- add the law widgets javascript -->
<script
type="module"
src="https://cdn.jsdelivr.net/npm/@lawsafrica/law-widgets@latest/dist/lawwidgets/lawwidgets.esm.js"
></script>
</head>
<body>
<a href="{% url 'home' %}">Home</a>
<h1>{{ expression.title }}</h1>
<!-- use la-akoma-ntoso law widget to apply styles -->
<la-akoma-ntoso frbr-expression-uri="{{ expression.frbr_uri }}">
{{ expression.content|safe }}
</la-akoma-ntoso>
</body>
The frbr-expression-uri attribute
Customising styles
Last updated