Created
May 24, 2017 09:22
-
-
Save godfreyd/4bda7da3db029890378e15bcc38f32de to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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