

If someone could give me a hand that would be wonderful. all the static assets are being served from publicĪpp.use(express.static(path.join(_dirname,'public'))) pugjs / pug Public Notifications Fork 2k Star 21.1k Code Issues 276 Pull requests 19 Actions Security 1 Insights New issue Is there a way to import data into Pug directly (without locals) 2758 Closed wamoyo opened this issue 12 comments aderaaij Sign up for free to join this conversation on GitHub. My project is also serving from the root/public folder as defined by here.

I have the jquery package as a dependency as well.

Now to clarify, this is stored in my views folder in the root directory of my project. Script(src="" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous") Link(rel='stylesheet', href='/css/tableStyles.css') pug. Link(rel='stylesheet', href='/css/testTables.css') The general rendering process of Pug is simple. Link(rel='stylesheet', href='/css/style.css') Meta(viewport='viewport' content='width=device-width, initial-scale=1.0') Now i thought I could simply import the script with the classic script tag, but it is not working. I have followed tutorials, looks at examples, and I get a weird error which clearly indicates I am not loading the module properly.Įrror: 10| script(src="" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous") Pug.js is a HTML templating engine, which means you can write much simpler Pug code, which Pug compiler will compile into HTML code, that browser can understand. I am trying to include the jquery library to expose some of its functionality.
