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

vdt

Package Overview
Dependencies
Maintainers
2
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vdt

A template engine based on virtual dom library misstime

latest
Source
npmnpm
Version
3.0.46
Version published
Weekly downloads
955
894.79%
Maintainers
2
Weekly downloads
 
Created
Source

Vdt.js

npm version Build Status

一个基于虚拟DOM的模板引擎,详情请访问:Documents

Benchmark

功能特性

  • 基于虚拟DOM,更新速度快
  • 支持模板继承,包含,宏定义等功能
  • 文件大小在gzip压缩后大概13KB(包含浏览器实时编译模块)
  • 支持前后端渲染

安装

npm install vdt --save

示例

<div>
    <h1>{title}</h1>
    <div ev-click={onClick.bind(self)}>Clicked: {count}</div>
    <ul v-for={items}>
        <li>{key}: {value}</li>
    </ul>
</div>
var vdt = Vdt(template);
var dom = vdt.render({
    title: 'vdt',
    items: {
        a: 1,
        b: 2
    },
    count: 0,

    onClick: function() {
        this.count++;
        vdt.update();
    }
});

document.body.appendChild(dom);

相关库

基准测试

See Benchmark

许可

MIT

FAQs

Package last updated on 31 Mar 2026

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