Powered by SlimFast
- Add
{:phoenix_slim, "~> 0.4.0"}
to your deps inmix.exs
. - Add the following your Phoenix
config/config.exs
:
config :phoenix, :template_engines,
slim: PhoenixSlim.Engine
In my_app/config/dev.exs
, add or edit to include slim
extension to list of watched files.
# Watch static and templates for browser reloading.
config :my_app, MyApp.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif)$},
~r{web/views/.*(ex)$},
~r{web/templates/.*(eex|slim)$}
]
]
Please see LICENSE for licensing details.