Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.01 KB

README.md

File metadata and controls

33 lines (25 loc) · 1.01 KB

Phoenix Template Engine for Slim

Build Status Hex Version

Powered by SlimFast

Usage

  1. Add {:phoenix_slim, "~> 0.4.0"} to your deps in mix.exs.
  2. Add the following your Phoenix config/config.exs:
  config :phoenix, :template_engines,
    slim: PhoenixSlim.Engine

Live Reloader

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)$}
    ]
  ]

License

Please see LICENSE for licensing details.