Add support for atlaskit with server-side rendering
James Hazelwood (approved)
Branch: issue/ACEJS-156-atlaskit-with-ssr
Branch: master
Merged
Merged pull request
Merged in issue/ACEJS-156-atlaskit-with-ssr (pull request #83)
Merged in issue/ACEJS-156-atlaskit-with-ssr (pull request #83)
Basic approach
Left ACE itself untouched
Wrote a custom express template engine that dynamically requires the transpiled version of the jsx, server-side renders it and populates a handlebars template with the html and the necessary script for rehydration. Added a parameter to do browser-only in case there are issues with the SSR.
Added explanatory comments and updated the example views to include some jsx.
Updated the start script; added build and watch scripts.
Result
Next steps
Update ace docs (and maybe tweak ace code if appropriate)
Â