Leave server-side rendering in a state where things can continue.

This commit is contained in:
Dorian 2016-09-01 07:59:10 -04:00
parent e6623effaf
commit 7dc1816906
1 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ Main package for Rookeries.
from flask.ext import assets
# TODO: Enable server-side rendering with: https://github.com/nitely/python-react-v8
# import react
import react
from rookeries import config, main, webapp
@ -22,11 +22,11 @@ def make_rookeries_app():
config.configure_web_app(web_app)
register_asset_bundles_with_app(web_app)
# TODO: Enable server-side rendering: see https://github.com/nitely/python-react-v8/tree/master/examples/flux/src
# react.set_up()
react.set_up()
# react.utils.load_libs(['./rookeries/static/scripts/rookeries-bundle.js'])
# react.utils.load_libs(['./client/index.js'])
# react.utils.load_libs(['./client/dist/rookeries-server.js'])
# react.utils.load_libs(['./client/dist/rookeries.js'])
# react.utils.load_libs(['./rookeries/static/scripts/rookeries-bundle.js'])
# react.utils.load_libs(['./client/dist/rookeries.js']) # TODO: Re-enable once self.fetch resolved.
return web_app