From ed201bde4f01308fadba1faf36c45148b950a2e8 Mon Sep 17 00:00:00 2001 From: Ginetom Date: Thu, 14 Feb 2019 09:35:27 -0300 Subject: [PATCH] Update static_files.asciidoc Minor update clarifying the need of the `priv` directory on project's root. --- doc/src/guide/static_files.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/src/guide/static_files.asciidoc b/doc/src/guide/static_files.asciidoc index 9d9b8cc2..03d87c78 100644 --- a/doc/src/guide/static_files.asciidoc +++ b/doc/src/guide/static_files.asciidoc @@ -43,11 +43,11 @@ which means that your route must end with a `[...]` pattern for it to work. All files are served, including the ones that 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 +The following rule will serve any file found in the application's +`my_app/priv` directory and inside the `static/assets` folder whenever the requested path begins with `/assets/`: [source,erlang]