1.0.5 • Published 2 years ago

@webpart/process-template v1.0.5

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

@webpart/process-template

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

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

1.0.5

2 years ago

1.0.4

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago