I’d like to be able to render javascript templates using the Mithril JS framework on the server for SEO and first load purposes and have them run in the browser.
I’d like to be able to render javascript templates using the Mithril JS framework on the server for SEO and first load purposes and have them run in the browser.
2
Answers
See this blog post: https://gist.github.com/StephanHoyer/bddccd9e159828867d2a
And this example repo: https://github.com/StephanHoyer/mithril-isomorphic-example
to run the demo, simply
Give my new framework (https://github.com/ezramorse/mens) a whirl for an out of box solution
Or just require(‘mens’) from the root and start from scratch!