phoenix_html_simplified_helpers
phoenix_html_simplified_helpers copied to clipboard
Some helpers for phoenix html( truncate, time_ago_in_words, number_with_delimiter, url_for, current_page? )
Hello! This PR fixes the deprection on `Enum.chunk/4`, which is now replaced by `Enum.chunk_every/4`. Fixes https://github.com/ikeikeikeike/phoenix_html_simplified_helpers/issues/14
``` ==> phoenix_html_simplified_helpers Compiling 6 files (.ex) warning: Enum.chunk/4 is deprecated. Use Enum.chunk_every/4 instead lib/phoenix_html_simplified_helpers/number_with_delimiter.ex:8: Phoenix.HTML.SimplifiedHelpers.NumberWithDelimiter.number_with_delimiter/1 Generated phoenix_html_simplified_helpers app ```
"about 1 months ago" should say "about 1 month ago" (singular "month").
hi thanks for this module could I request the ability to truncate with raw html? `` doesn't work at present
https://github.com/ikeikeikeike/phoenix_html_simplified_helpers/blob/17511a87c078b62e9fc850a0b41f17e4eea8d357/lib/phoenix_html_simplified_helpers/truncate.ex#L9 Shouldn't it be `