@webpart/process-template

1.0.5 • Public • Published

@webpart/process-template

对指定的 html 内容中所有首层的 <template> 标签进行转换。

即把所有首层的 <template> 标签的 innerHTML 用一对 <script type="text/template"></script> 包裹起来。
首层 <template> 标签是指它的所有父节点中,不存在 <template> 节点。
换言之,如果一个 <template> 节点 A 位于另一个 <template> 节点 B 中,则节点 A 不属于首层 <template> 标签。

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.50latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.1.10
0.1.00

Package Sidebar

Install

npm i @webpart/process-template

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

4.86 kB

Total Files

4

Last publish

Collaborators

  • micty