https://github.com/denomod/deno_html
Useful template literal tag for create html strings in ES2015+
https://github.com/denomod/deno_html
deno deno-mod deno-module deno-modules denomod
Last synced: 4 months ago
JSON representation
Useful template literal tag for create html strings in ES2015+
- Host: GitHub
- URL: https://github.com/denomod/deno_html
- Owner: denomod
- License: mit
- Created: 2020-06-02T14:30:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-30T09:06:48.000Z (about 5 years ago)
- Last Synced: 2026-02-16T15:28:20.398Z (4 months ago)
- Topics: deno, deno-mod, deno-module, deno-modules, denomod
- Language: TypeScript
- Homepage: https://deno.land/x/html
- Size: 45.9 KB
- Stars: 13
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_html
[](https://github.com/denomod/deno_html/releases)
[](https://github.com/denomod/deno_html/actions)
[](https://github.com/denomod/deno_html/blob/master/LICENSE)
Useful template literal tags for create html/css strings in ES2015+.
## Usage
```ts
import { html } from "https://deno.land/x/html/mod.ts";
let languages = ["Rust", "JavaScript", "TypeScript"];
const str = html`
${languages.map((x) => `- ${x}
`)}
`;
console.log(str);
```
Outputs:
```html
- Rust
- JavaScript
- TypeScript
```
## Why not template literal?

### License
[deno_html](https://github.com/denomod/deno_html) is released under the MIT
License. See the bundled [LICENSE](./LICENSE) file for details.