Skip to content
TwitterDiscordGitHub

Installation

This method involves connecting the file through a third-party resource, which provides the ability to obtain a javascript file from npm via a link.

<script src="https://unpkg.com/json5/dist/index.min.js"></script>
<script src="https://unpkg.com/dompurify/dist/purify.min.js"></script>
<script src="https://unpkg.com/hmpl-js/dist/hmpl.min.js"></script>
<!--
integrity="..."
crossorigin="anonymous"
-->

This resource could be unpkg, skypack or other resources. The examples include unpkg simply because it is one of the most popular and its url by characters is not so long.

The project is also available as a downloadable module using the package manager.

Terminal window
npm i hmpl-js

There is a starter project on Vite.

Terminal window
npx degit hmpl-language/hello-hmpl-starter hello-hmpl

Based on it, you can make web applications.