Phoenix Ratchet
![Build Status][travis-img]][travis] [![Hex Version][hex-img]
A Phoenix template engine for Ratchet.
View the Documentation.
Usage
- Install with Hex:
def deps do
[{:phoenix_ratchet, "~> 0.4"}]
end
- Configure Phoenix in
config/config.exs
to use the Ratchet engine:
config :phoenix, :template_engines,
ratchet: Ratchet.Phoenix.Engine
- Configure Phoenix in
config/dev.exs
to live reload Ratchet templates:
config :blurg, Blurg.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{web/views/.*(ex)$},
- ~r{web/templates/.*eex$}
+ ~r{web/templates/.*(eex|ratchet)$}
]
]
An example project can be found at iamvery/example-ratchet-app.
Release
- Bump the version in
mix.exs
. - Add version to CHANGELOG.
- Commit version with Git tag
vX.X.X
. - Publish to Hex
$ mix do hex.publish, hex.publish docs