LoginSignup
1
0

More than 3 years have passed since last update.

CWLで、location と path なら、location を使ったほうが良い

Last updated at Posted at 2019-09-05

概要

location を使ったときは、いろいろ良しなにやってくれるのだが
path を使うと、はまりがち
--make-template したときにはまりがち。
これが、 path を出力してくるので、それに従う人が多い

結論

pathlocationではまったら仕様を確認しよう。

たとえば

location は相対パスがかける
path では、相対パスがかけない(と、思っていたが、処理系依存の可能性あり)

URLも、location にはかける

path はファイルシステム側の話になるはず、それも、 location なら、 file:///でいけるので。

TODO: 仕様を確認する

1
0
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
1
0