Create html with function components in Typescript / Javascript.
There are no dependencies.
npm install --save-dev https://github.com/wolfpup-software/coyote-js
Create documents with coyote components.
import { tmpl } from "coyote";
function hai() {
return tmpl`<p>hai :3</p>`;
}
Render components as html
with document builders.
import { Html, tmpl } from "coyote";
function hai() {
return tmpl`<p>hai :3</p>`;
}
let helloWorld = hai();
let html = new Html();
let [document, _error] = html.build(helloWorld);
console.log(document);
The output will be:
<p>hai :3</p>
Coyote-js
is released under the BSD 3-Clause License.