Skip to content

tlaziuk/mithril-render

 
 

Repository files navigation

mithril-render

Build Status Coverage Status dependencies Status devDependencies Status peerDependencies Status npm version downloads license

this is a TypeScript fork of Stephan Hoyer's mithril-node-render

Installation

npm install mithril-render

Usage

import * as browserMock from "mithril/test-utils/browserMock";

// use a mock DOM so we can run mithril on the server
browserMock(global);

import render from "mithril-render";

import * as m from "mithril";

render(m('span', 'huhu')).then((html) => {
    console.log(html);
});

See also

About

Use mithril views to render server side

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%