ez_calendar v0.1.4 EZCalendar.HTML.Navigation

HTML helpers to render calendar navigation links

Summary

Functions

HTML helper for rendering a calendars next link. Takes a calendar struct amd a string to format the path from as arguments. The placeholders :day :month and :year will be replaced with the corresponding params

The same as calendar_next aside from using the calendards prev params

Functions

calendar_next(calendar, path, content \\ nil)

HTML helper for rendering a calendars next link. Takes a calendar struct amd a string to format the path from as arguments. The placeholders :day :month and :year will be replaced with the corresponding params.

“/events/:year/:month/:day”

“/events?year=:year&month=:month”

Takes a function or string optional third argument to render something other than the default output.

calendar_prev(calendar, path, content \\ nil)

The same as calendar_next aside from using the calendards prev params