Authored by xuqi

初始化tag页面

... ... @@ -3,9 +3,12 @@
* @author: xuqi(qi.xu@yoho.cn)
* @date: 2015/3/27
*/
var detail = require('./views/controller/detail');
var detail = require('./views/controller/detail'),
tag = require('./views/controller/tag');
module.exports = function(app) {
app.get('/', detail.show);
app.get('/optimize', detail.optimize)
app.get('/optimize', detail.optimize);
app.get('/tag', tag.show);
};
\ No newline at end of file
... ...
/**
* tag页控制器文件
* @author: xuqi(qi.xu@yoho.cn)
* @date: 2015/4/9
*/
var data = require('../../public/js/data.js')();
exports.show = function(req, res) {
res.render('tag/tag', {
detail: data,
layout: '../layouts/layout',
css: '../css/tag.css'
});
};
\ No newline at end of file
... ...
hello
\ No newline at end of file
... ...