Skip to content

w-lfpup/coyote-js

Repository files navigation

Coyote-js

Create html with function components in Typescript / Javascript.

There are no dependencies.

Install

npm install --save-dev https://github.com/wolfpup-software/coyote-js

Components

Create documents with coyote components.

import { tmpl } from "coyote";

function hai() {
    return tmpl`<p>hai :3</p>`;
}

Document Builders

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>

License

Coyote-js is released under the BSD 3-Clause License.

About

build html with component functions in typescript / javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published