xjst-ddsl
v1.0.1
Published
Experimental ddsl engine for virtual dom libraries on xjst
Downloads
9
Maintainers
Readme
DDSL Engine for XJST
npm i --save-dev xjst-ddsl
Usage
'use strict';
const ddsl = require('xjst-ddsl');
const runtime = new ddsl.Engine();
// LIVE
runtime.compile(/* templates */);
runtime.apply(/* bemjson */);
// BUNDLE
const fs = require('fs');
fs.writeFileSync('./bundle.ddsl.js', ddsl.generate(/* templates */));
const compiledTemplates = require('./bundle.ddsl.js');
compiledTemplates.apply(/* bemjson */);