Просмотр исходного кода

Clarify what the private directory is

Ginetom 6 лет назад
Родитель
Сommit
cd9b04792c
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      doc/src/guide/static_files.asciidoc

+ 5 - 5
doc/src/guide/static_files.asciidoc

@@ -43,12 +43,12 @@ which means that your route must end with a `[...]` pattern
 for it to work. All files are served, including the ones that
 for it to work. All files are served, including the ones that
 may be found in subfolders.
 may be found in subfolders.
 
 
-You can specify the directory relative to an application's
-private directory.
+You can specify the directory relative to the application's
+private directory (e.g. `my_app/priv`).
 
 
-The following rule will serve any file found in the application
-`my_app`'s priv directory inside the `static/assets` folder
-whenever the requested path begins with `/assets/`:
+The following rule will serve any file found in the `my_app`
+application's private directory in the `my_app/priv/static/assets`
+folder whenever the requested path begins with `/assets/`:
 
 
 [source,erlang]
 [source,erlang]
 {"/assets/[...]", cowboy_static, {priv_dir, my_app, "static/assets"}}
 {"/assets/[...]", cowboy_static, {priv_dir, my_app, "static/assets"}}