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
- Host: GitHub
- URL: https://github.com/wolfpup-software/coyote-js
- Owner: wolfpup-software
- License: bsd-3-clause
- Created: 2024-10-08T04:57:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T00:04:52.000Z (over 1 year ago)
- Last Synced: 2025-02-21T01:19:47.168Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.