From f4c1f99781031d82de0b5622ad2f753cbce8ffa3 Mon Sep 17 00:00:00 2001 From: Benjamin Schultzer Date: Mon, 28 May 2018 16:58:34 -0700 Subject: [PATCH] Add example of currency_select to readme and fix doc examples --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb6b736..509fde4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# CldrHtml +# Cldr.HTML HTML helper functions for CLDR. @@ -12,9 +12,17 @@ HTML helper functions for CLDR. * Select days of the week and months of the year in a given locale +## Examples + +```elixir + iex> import Phoenix.HTML + iex> safe_to_string Cldr.HTML.Currency.select(:my_form, :currency, selected: :USD, currencies: ~w(usd eur jpy cop)) + "" +``` + ## Installation -`CldrHtml` can be installed by adding `ex_cldr_html` to your list of dependencies in `mix.exs`: +`Cldr.HTML` can be installed by adding `ex_cldr_html` to your list of dependencies in `mix.exs`: ```elixir def deps do