New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@acutejs/plugin-lit-html

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acutejs/plugin-lit-html

A plugin for Acute to use [lit-html](https://lit-html.polymer-project.org).

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@acutejs/plugin-lit-html

A plugin for Acute to use lit-html.

Usage

First, install the plugin and its peer-dependency, lit-html.

npm install @acutejs/plugin-lit-html lit-html

Next, pass the plugin and a reference to lit-html’s render function to Acute’s createApp().

import litHtml from '@acutejs/plugin-lit-html';
import { render } from 'lit-html';

createApp({
  // ...
  plugins: [
    litHtml({
      render,
    }),
  ],
});

Finally, use lit-html’s html function to tag the template string in your components render() function.

import { html } from 'lit-html';

const message = 'Hello, world';

export default {
  render() {
    return html`<p> ${message} </p>`;
  },
};

FAQs

Package last updated on 12 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts