Update Readme (#83)

- Updates version in installation instructions
- Adds `lexs` extension to the live reload and formatter configs
This commit is contained in:
zimt28 2020-07-14 16:03:42 +02:00 committed by GitHub
parent edb023fd9a
commit 3d620c7b07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ Add `temple` to your list of dependencies in `mix.exs`:
```elixir ```elixir
def deps do def deps do
[{:temple, "~> 0.6.0-alpha.0"}] [{:temple, "~> 0.6.0-alpha.1"}]
end end
``` ```
@ -73,8 +73,8 @@ config :phoenix, :template_engines,
config :your_app, YourAppWeb.Endpoint, config :your_app, YourAppWeb.Endpoint,
live_reload: [ live_reload: [
patterns: [ patterns: [
~r"lib/myapp_web/(live|views)/.*(ex|exs)$", ~r"lib/myapp_web/(live|views)/.*(ex|exs|lexs)$",
~r"lib/myapp_web/templates/.*(eex|exs)$" ~r"lib/myapp_web/templates/.*(eex|exs|lexs)$"
] ]
] ]
``` ```
@ -137,6 +137,6 @@ To include Temple's formatter configuration, add `:temple` to your `.formatter.e
```elixir ```elixir
[ [
import_deps: [:temple], import_deps: [:temple],
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"], inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs,lexs}"],
] ]
``` ```