embed-html

Ultra-simple HTML templating

Usage no npm install needed!

<script type="module">
  import embedHtml from 'https://cdn.skypack.dev/embed-html';
</script>

README

embed-html

Engineless super-simple HTML templating

Usage

Simply install with npm i embed-html

The package can then be used as a single function:

index.html: <h1>${header}</h1>

const embed = require('embed-html')
console.log(embed('index.html', { header: 'Hello!' }))

Outputs <h1>Hello!</h1>