1.0.0 • Published 5 years ago

@sharyn/tags.html v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

🌹 html

html is a template string tag that does nothing. It's a normal template string, but your code editor or its plugins (lit-html or es6-string-html for VSCode) might support syntax highlighting for HTML when they are marked with an html tag.

const createHtml = ({ title }: { title: string }) =>
  html`
    <!DOCTYPE html>
    <html lang="en">
      <head>
        <title>${title}</title>
      </head>
      <body>
        <h1>${title}</h1>
      </body>
    </html>
  ` // This HTML code has syntax highlighting