Skip to content

Instantly share code, notes, and snippets.

@godfreyd godfreyd/index.js
Created May 24, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.