Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Paradem/phoenix_timex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix Timex

Phoenix Timex integrates Phoenix with Timex. It simply implements the Phoenix.HTML.Safe protocol for %Timex.DateTime and %Timex.Date, allowing you to use them in your templates without having to pick a format.

NOTE: Phoenix Timex is only useful for Timex < 3 and Elixir < 1.3. Timex 3 uses Calendar types, wich already implement Phoenix.HTML.Safe.

Installation

  1. Add phoenix_timex to your list of dependencies in mix.exs:

    def deps do [{:phoenix_timex, "~> 1.0.0"}] end

  2. Run mix deps.get

Support for other Timex versions

Phoenix Timex 1.x supports Timex 2.x.

Use Phoenix Timex 0.0.3 if you want support for Timex < 2.

Releases

No releases published

Packages

No packages published

Languages