Skip to content

Instantly share code, notes, and snippets.

@godfreyd
Created May 24, 2017 09:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save godfreyd/4bda7da3db029890378e15bcc38f32de to your computer and use it in GitHub Desktop.
var Render = require('../render'),
render = Render.render;
function getContent(req, res) {
var hello = 'Hello';
var world = 'World';
render(req, res, {
view: 'page-index',
title: 'Main page',
meta: {
description: 'Page description',
og: {
url: 'https://site.com',
siteName: 'Site name'
}
},
hello: hello,
world: world
});
}
module.exports = {
getContent
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment