New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vdt-compiler

Package Overview
Dependencies
Maintainers
0
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vdt-compiler

The compiler of Vdt

  • 3.0.40
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by44.44%
Maintainers
0
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);

相关库

  1. misstime vdt基于的virtual dom库
  2. Intact 基于vdt的mvvm框架
  3. vdt-loader vdt模板文件的webpack loader

基准测试

See Benchmark

许可

MIT

FAQs

Package last updated on 21 Jan 2025

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc