繁体   English   中英

翡翠未在meanjs 0.4.2中编译

[英]jade not compiling in meanjs 0.4.2

partial.server.route.js

module.exports = function(app){
    var partial = require('../controllers/partial.server.controller');
    app.get('modules/:module/client/views/:view*', partial.render);
};

partial.server.controller.js

exports.render = function(req, res, next){
    console.log(req.path);
    res.render('.'+req.path);
};

正在使用

header(data-ng-include="'modules/core/client/views/header.client.view.jade'")

它显示为纯文本

请帮我谢谢。

使用Jade自己的include机制怎么样?

header
    include modules/core/client/views/header.client.view

另外我不确定您是否可以将ng-include指令与jade模板一起使用。 我相信您应该使用html文件代替。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM