Skip to content

WorldMaker/system-jade-virtualdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

system-jade-virtualdom

This is an ES6/SystemJS loader plugin for jade-virtualdom, which takes in a Jade template and outputs a virtual-dom VTree.

Install

$ jspm install jade-vd=github:WorldMaker/system-jade-virtualdom
# Force a higher version of jade-virtualdom's dep "with" as it was not working in my browser
# TODO: Send PR to upstream or find better solution
$ jspm install npm:with@^5.0.0
$ jspm resolve --only npm:with@^5.0.0

Usage

If you install with the suggested alias above of jade-vd then you can use something like this (ESM module format):

import view from 'views/loading.jade!jade-vd'

let vtree = view({
	// Context object
	test: "Hello",
})