Skip to content

VDOM helpers for writing direct VDOM-based templates

License

Notifications You must be signed in to change notification settings

pandastrike/panda-vdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Panda VDOM

VDOM helpers for writing direct VDOM-based templates. Based on the excellent diffHTML library behind the scenes.

import {HTML} from "../src/index"
{render, html, body, h1} = HTML

assert.equal "<html><body><h1>Hello, World!</h1></body></html>",
  render html [
    body [
      h1 "Hello, World!"
    ]
  ]

Installation

npm i panda-vdom

About

VDOM helpers for writing direct VDOM-based templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published