Skip to content

Add helpers for head style and script tags

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 23 Aug 10:25

In order to make the HTML formatter output interactive it requires JavaScript and CSS. You can grab that HTML and CSS from the following helpers and inject it inside the head tag. Ideally, multiple integrations will be required for different frameworks to make this process seamless.

import { createStyleSheet, createScript } from '@poppinss/dumper/html'

<html>
<head>
   <style> {{ createStyleSheet }} </style>
   <script> {{ createStyleSheet }} </style>
</head>
</html>

0.1.0-beta.1 (2024-08-23)

Features

  • add helpers to generate styles and script (bb075b9)