Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@rhi-ui/html

1.0.6 • Public • Published

HTML Tagged Template

Basic Tagged template which will allow us to get code highlights, on VSCode, for our vanilla custom element templates.

Use

When writting vanilla custom elements, write your template in the following fashion to get html code highlights:

public static getTemplate(): string {
    return html`
    <div>My HTML template code goes here</div>
    `;
}

Install

npm i @rhi-ui/html

DownloadsWeekly Downloads

0

Version

1.0.6

License

Apache-2.0

Unpacked Size

1.85 kB

Total Files

5

Last publish

Collaborators

  • avatar