text: /**
   * Created by liuxing on 14-10-22.
   */
  var api             = require('../../api'),
      template        = require('../template');
  
  var pre_post = function (options) {
      var data = (options || {}).hash ||{};
      var option =  {
          include :'author',
          limit : data.limit ? data.limit:1,
          type : data.type ? parseInt(data.type):0
      };
      return api.posts.preRow(this.id,option).then(function(posts){
          return template.execute('relative_post', {posts:posts});
      });
  };
  module.exports = pre_post;