Skip to content

ReaxDev/phoenix_slim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Phoenix Template Engine for Slim

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%