Update README

This commit is contained in:
Mitchell Hanberg 2020-07-25 12:07:00 -04:00
parent d4b81d60de
commit ba49ce2b4b

View file

@ -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.