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