nicojs / typed-html

TypeSafe HTML templates using TypeScript. No need to learn a template library.
333 stars 51 forks source link

feat(browser): support browsers as well as node #8

Closed nicojs closed 5 years ago

nicojs commented 5 years ago

Use direct es import import typedHtml from './node_modules/typed-html/dist/elements.js' or use a bare import (import typedHtml from 'typed-html'`) with a bundler like rollup.

BREAKING CHANGE: emitted new lines in strings are no longer platform dependent. \n is now always used.