Installation
Prerequisites (except CDN)
Section titled “Prerequisites (except CDN)”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.
As a module
Section titled “As a module”The project is also available as a downloadable module using the package manager.
npm i hmpl-js
bun add hmpl-js
Through the starter template project
Section titled “Through the starter template project”There is a starter project on Vite.
npx degit hmpl-language/hello-hmpl-starter hello-hmpl
bunx degit hmpl-language/hello-hmpl-starter hello-hmpl
Based on it, you can make web applications.