0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Express + pugメモ

Last updated at Posted at 2021-07-12

memo

  • ルートのapp.jsでexpressを操作する。
  • "var indexRouter = require('./routes/index');"でwebページを読み込む
  • app.setでhtmlにrender
  • app.useでurlとwebページを紐づける。
  • azure上のファイル操作はvscodeのローカルのフォルダからdeployを行うと更新できる。
  • extendsが宣言されているpugファイルはblock外で宣言してはいけないようだ。
  • javascriptを読み込みたいなら"script(src='/javascripts/test.js')"という風にblockないで宣言する。
  • javascriptsフォルダはpublic内に存在する。
  • "include xxx.js"という風に宣言するとpugファイルとしてincludeされる。
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?