pug

    0热度

    2回答

    有没有办法让Google静态地图API链接在帕格(玉)模板中动态变化? 例如, img.img-responsive.img-rounded(src='http://maps.googleapis.com/maps/api/staticmap?center=52.241770, -0.900181&zoom=17&size=400x350&sensor=true&markers=52.241770

    0热度

    1回答

    我通过一个类似的帖子阅读,但个人使用Perl和东西埃尔斯,所以它没有帮助我。我的问题是我如何提交一个带有节点js/pug的表单,但仍保留在同一页面上。 在哈巴狗形成方法设置为POST和操作设置为我的NodeJS/profile文件 我使用 router.post("/profile", req, res, next){ return res.redirect("back")

    0热度

    1回答

    工作了崇高的文本3安装哈巴狗和将其设置为使用帕格语法高亮后,我得到以下问题: 我相信问题是使用“字符串”+变量没有(括号),经过测试后,下一行工作... 我将通过整个文件,看看我是否可以修复所有,然后编辑这个或者给出答案。

    0热度

    2回答

    我想将来自3个不同promises的数据传递到nodej中的render函数中,以便与pug一起使用。 var promise = require('promise'); var statusChart = new promise(function (resolve, reject) { a.aggregate( [ {

    0热度

    1回答

    我试图在html评论中写入循环变量的值,但我只在我的评论中获得原始文本。 内模板: div This is a simple div - for itervalue in names label //This is a html comment for item #{itervalue} sent to client input(type='radio', na

    3热度

    1回答

    我目前正在尝试使用Pug(以前称为Jade)和Express设置密码重置流程。 由于某些原因,GET请求(包括带有多个路径的URL)将仅使用文本呈现我的帕格视图文件。没有加载图像或样式。 例如: app.get('/example', (req, res) => { res.render('test') }) 将呈现风格和图片,完美的测试文件。但是: app.get('/examp

    0热度

    1回答

    我在写一个小型的NodeJS/Express应用程序。我设立了哈巴狗作为模板引擎: const app = express(); app.set('view engine', 'pug'); app.set('views', __dirname + "/public/views"); app.use(express.static(__dirname + '/public/static'))

    0热度

    1回答

    我尝试了很多,但我无法缓存使用JADE模板引擎构建在Nodejs Express上的WebApplication。 什么,我试图, 1-试图pm2经理 2-尝试设置NODE_ENV到production 3-新增的缓存模块(但我明白力如何使用) const NodeCache = require("node-cache"); const myCache = new NodeCache({ std

    1热度

    1回答

    我为我的项目使用pugjs。我无法在pug模板中加载css文件。我使用下面的代码 index.pug link(rel="stylesheet", href="views/styles/products.css", type="text/css") This is my project structure

    1热度

    2回答

    如何将价格数组添加到Jade中的第二个'td'标签?我希望它是迭代。可能吗? - var item = ['Item1', 'Item2', 'Item3'] - var price = ['40', '90', '140'] table.pricetable thead tr th item th price tbody