An open API service indexing awesome lists of open source software.

https://github.com/wolfpup-software/coyote-js

build html with component functions in typescript / javascript
https://github.com/wolfpup-software/coyote-js

Last synced: over 1 year ago
JSON representation

build html with component functions in typescript / javascript

Awesome Lists containing this project

README

          

# Coyote-js

Create html with function components in Typescript / Javascript.

There are no dependencies.

## Install

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

## Components

Create documents with coyote [components](./components.md).

```TS
import { tmpl } from "coyote";

function hai() {
return tmpl`

hai :3

`;
}
```

## Document Builders

Render components as `html` with [document builders](./document_builders.md).

```TS
import { Html, tmpl } from "coyote";

function hai() {
return tmpl`

hai :3

`;
}

let helloWorld = hai();
let html = new Html();

let [document, _error] = html.build(helloWorld);
console.log(document);
```

The output will be:

```html

hai :3


```

## License

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