Update README
This commit is contained in:
parent
d4b81d60de
commit
ba49ce2b4b
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ This module should implement the `Temple.Component` behaviour.
|
||||||
```elixir
|
```elixir
|
||||||
# config/config.exs
|
# 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.
|
You can then use this component in any other temple template.
|
||||||
|
|
Reference in a new issue