html2idom

WebJar for html2idom

Лицензия

Лицензия

ISC
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

html2idom
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

html2idom
WebJar for html2idom
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/ericponto/html2IDOM

Скачать html2idom

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/html2idom/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>html2idom</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/html2idom/
implementation 'org.webjars.npm:html2idom:0.0.5'
// https://jarcasting.com/artifacts/org.webjars.npm/html2idom/
implementation ("org.webjars.npm:html2idom:0.0.5")
'org.webjars.npm:html2idom:jar:0.0.5'
<dependency org="org.webjars.npm" name="html2idom" rev="0.0.5">
  <artifact name="html2idom" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='html2idom', version='0.0.5')
)
libraryDependencies += "org.webjars.npm" % "html2idom" % "0.0.5"
[org.webjars.npm/html2idom "0.0.5"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.webjars.npm » html-parse-stringify jar [1.0.2,2)
org.webjars.npm : htmlparser2 jar [3.8.3,4)
org.webjars.npm : incremental-dom jar [0.1.0,0.2)

Модули Проекта

Данный проект не имеет модулей.

html2idom

Convert a string of HTML into an Incremental DOM render.

HTML parsing done by htmlparser2, which is a very fast and accurate HTML parser. However, it comes at a cost up front as it adds around 40kb (min and gzipped) to your code.

If that dependency is too large,then there is a light version (require("html2idom/light")) using html-parse-stringy, which is much smaller in size, but slower when parsing HTML. If you are only dealing with small sets of HTML, then this option might be better.

Installation

npm install html2idom

Usage

var patchHTML = require("html2idom").patchHTML;

// get you view's el
var el = document.getElementById("view");
var html = "<h1 class='greetings'>Hello, World</h1>";

// apply the HTML to the el via incremental dom
patchHTML(el, HTML);

Версии библиотеки

Версия
0.0.5