我想在电子上使用帕格。 我有一个问题,我的第二个.pug文件无法正确显示,它只是输出帕格代码本身。 首先我有一个由main.js doctype
html(lang='en')
head
meta(charset='utf-8')
title HIMS
body
div(id="app")
script.
require('
我为我的项目使用pugjs。我无法在pug模板中加载css文件。我使用下面的代码 index.pug link(rel="stylesheet", href="views/styles/products.css", type="text/css")
This is my project structure
谁能告诉我为什么哈巴狗API不具有简单的例子,从他们的文档页面 const pug = require('pug');
// Compile the source code
const compiledFunction = pug.compileFile('template.pug');
// Render a set of data
console.log(compiledFunct