Need isomorphic event handling? Check out @rill/delegate!
npm install @rill/html
// We will use handlebars for our example.const hbs =const homePage = hbs// Setup a universal Rill application.const app =// Setup the html diffing/rendering middleware.app// Setup a homepage route.app
Sub page rendering.
Sometimes the goal is not to diff the entire page, or you want to use something like @rill/page to handle the document.
@rill/html adds the ability to change the root element with an option for this purpose.
// Use a query selector to set the root element to diff.app
npm testto run tests.
Please feel free to create a PR!