0.1.1 • Published 5 years ago

literally-html v0.1.1

Weekly downloads
41
License
-
Repository
github
Last release
5 years ago

literally HTML

A library agnostic fork of vscode-lit-html which aim is to bring syntax highlighting and language support for HTML inside of any JavaScript and TypeScript tagged template strings.

❗Important: IntelliSense and language support requires VS Code 1.20+.

Example

hyper(document.body)`
  <div class=${model.class}>
    ${model.greetings} !!!
  </div>`;

render`
  <ul>
    ${items.map(
      item => html`<li>${item.value}</li>`
    )}
  </ul>`;

Usage

If simply installing through VS Code is not enough, maybe the following could help.

# within your project
npm install --save-dev literally-html

# create a jsconfig.json file with the following content
echo '{
  "compilerOptions": {
    "plugins": [
      {
        "name": "typescript-lit-html-plugin"
      }
    ]
  }
}' > jsconfig.json
0.1.1

5 years ago

0.1.0

5 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago