Get started with juicer CDN

MIT licensed

Juicer.js: Lightweight, flexible Markdown rendering in browsers.

Tags:
  • juicer
  • template
  • templates
  • juicerjs
  • engine
  • javascript

Stable version

Copied!

How to start using juicer CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with juicer CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/juicer/0.6.15/juicer-min.js"></script>
</head>
<body>
    <div id="template">
        <h1>{{ title }}</h1>
        <p>{{ message }}</p>
    </div>

    <script>
        const template = juicer.compile('#template');
        const data = { title: 'Hello Juicer!', message: 'This is an example using Juicer.' };
        const output = template(data);
        document.body.innerHTML = output;
    </script>
</body>
</html>
Copied!
Copied!

All versions