1.0.5 • Published 11 months ago
blazejs.com v1.0.5
Getting Started
Step 1. Install via npm
npm install -g blazejs.com
Step 2. Open your favorite editor and write the following code and save it to test.tpl. Any extension will do.
<template="test" default>
<div>Hello world</div>
</template>
Step 3. Run in the command line
zw test.tpl
This will parse your code and save it to test.js
Step 4. The output is a javascript module which you can import in HTML
<html>
<body>
<!-- Include the base library after the body tag -->
<script src="http://blazejs.com/z/z.js">
<!-- Then import the module and initialize it -->
<script type="module">
import test from "/test.js";
new test({
target : "body"
});
</script>
</body>
</html>