Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Supporting server rendering #13

Open
phanviet opened this issue Feb 7, 2016 · 2 comments
Open

Supporting server rendering #13

phanviet opened this issue Feb 7, 2016 · 2 comments

Comments

@phanviet
Copy link

phanviet commented Feb 7, 2016

I have found https://github.com/StephanHoyer/mithril-node-render supports mithril server rendering. Could you integrate it (like react-rails worked) to rails server.

@mrsweaters
Copy link
Owner

The views are rendered server side. That's what this line is doing: https://github.com/mrsweaters/mithril-rails/blob/master/lib/mithril_rails/msx.rb#L19

@phanviet
Copy link
Author

phanviet commented Feb 8, 2016

Yes, It's a msx assets pipeline engine. But for SEO, I want the views are displayed on the first load. In react-rails, it uses "prerender" parameter:
<%= react_component('HelloMessage', {name: 'John'}, {prerender: true}) %>
Would you integrate it in the future?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants