Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Next.js 2.0. Parent comment
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.
There are no comments on this comment yet.
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.