Template engine

Kreftjs.render(view, data) turns a view and data into HTML text, for emails, print pages or HTML you build in JavaScript. Edit either box.

The HTML text

<h3>Hello Maxamuud Xussen</h3>
<ul>
  <li>JavaScript</li><li>Kreft</li><li>Tailwind</li>
</ul>

How it looks

Hello Maxamuud Xussen

  • JavaScript
  • Kreft
  • Tailwind

This page compiles views in the browser, so it doesn't work under a strict Content-Security-Policy.