/**
 * GET /
 * Home page.
 */
import Application from '../../application/HelloWorld';

exports.home = (req, res) => {
  res.render('home', {
    Application,
    applicationName: 'HelloWorld',
    preloadedState: Object.assign({}, Application.preloadedState, {
      otherState: 123,
    }),
    payload: {},
    cache: true,
  });
};

/**
 * GET /
 * Home page.
 */
import Application from '../../application/HelloWorld';

exports.home = (req, res) => {
  res.render('home', {
    Application,
    applicationName: 'HelloWorld',
    preloadedState: Object.assign({}, Application.preloadedState, {
      otherState: 123,
    }),
    payload: {
      title: 'My Application',
      description: 'This is an example.',
    },
    cache: true,
  });
};

Add payload 'title' and 'description' to render in 'Home' view.
Add payload 'title' and 'description' to render in 'Home' view.
