...
|
...
|
@@ -3,7 +3,10 @@ |
|
|
* @author: xuqi(qi.xu@yoho.cn)
|
|
|
* @date: 2015/4/15
|
|
|
*/
|
|
|
var data = require('../../public/js/data')('ps');
|
|
|
var data = require('../../public/js/data')('ps'),
|
|
|
path = require('path'),
|
|
|
fs = require('fs'),
|
|
|
tplPath = path.normalize(path.join(__dirname, '../partials/ps/info-item.html'));
|
|
|
|
|
|
exports.show = function(req, res) {
|
|
|
res.render('pages/ps', {
|
...
|
...
|
@@ -12,4 +15,16 @@ exports.show = function(req, res) { |
|
|
css: '../css/ps.css',
|
|
|
usejs: 'ps/footer'
|
|
|
});
|
|
|
};
|
|
|
|
|
|
exports.readTpl = function(req, res) {
|
|
|
fs.readFile(tplPath, 'utf8', function(err, data) {
|
|
|
if (err) {
|
|
|
res.send({success: false})
|
|
|
}
|
|
|
res.send({
|
|
|
success: true,
|
|
|
data: data
|
|
|
});
|
|
|
});
|
|
|
}; |
|
|
\ No newline at end of file |
...
|
...
|
|