Skip to content

Instantly share code, notes, and snippets.

@DTrejo
Created July 1, 2010 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DTrejo/460253 to your computer and use it in GitHub Desktop.
Save DTrejo/460253 to your computer and use it in GitHub Desktop.
var response = require('ringo/webapp/response');
var model = require('./model');
exports.index = function index(req) {
//last 10 posts
var posts = model.Post.query().select();//.slice(0,10);
return response.skinResponse('skins/index.html', {
posts: posts,
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment