Skip to content

Instantly share code, notes, and snippets.

@diegocasmo
Created February 20, 2017 15:22
Show Gist options
  • Save diegocasmo/e357ade2dbd73222b443ec7e588743fe to your computer and use it in GitHub Desktop.
Save diegocasmo/e357ade2dbd73222b443ec7e588743fe to your computer and use it in GitHub Desktop.
This file bootstraps the whole application. It receives appData and then initializes the application.
<html>
<body>
<div id="root"><%- renderedRoot %></div>
<script src="/app.js"></script>
<script>
var config = {
appData: <%-JSON.stringify(appData)%>
};
MY_APP.initialize(config);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment