From ba49ce2b4b8cb977b3661872edb2374eee3cb764 Mon Sep 17 00:00:00 2001 From: Mitchell Hanberg Date: Sat, 25 Jul 2020 12:07:00 -0400 Subject: [PATCH] Update README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ff08310..e965c04 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,10 @@ This module should implement the `Temple.Component` behaviour. ```elixir # config/config.exs -config :temple, :components_prefix, MyAppWeb.Components +config :temple, :component_prefix, MyAppWeb.Components + +# also set the path so recompiling will work in Phoenix projects +config :temple, :components_path, "./lib/my_app_web/components" ``` You can then use this component in any other temple template.