4 ms·
Take a look at http://markojs.com/ http://markojs.com/ and http://markojs.com/docs/installing/ http://markojs.com/docs/installing/ test.marko: `<h1 on-click('c
by ramses0 10y ago
Take a look at http://markojs.com/ http://markojs.com/ and http://markojs.com/docs/installing/ http://markojs.com/docs/installing/
test.marko: `<h1 on-click('callMyFunc')>${ input.hello }</h1>`
component.js: `class { callMyFunc(e) { console.log(e); } }`
...gets compiled to test.marko.js which can then be require'd or using a special runtime loader or transformer. It hits a nice sweet spot for me, and is worth checking out.