module Web.View.Tasks.Index where import Web.View.Prelude data IndexView = IndexView { tasks :: [Task] } instance View IndexView where html IndexView { .. } = [hsx|

Tasks+ New

{forEach tasks renderTask}
Task
|] where breadcrumb = renderBreadcrumb [ breadcrumbLink "Tasks" TasksAction ] renderTask :: Task -> Html renderTask task = [hsx| {task.description} Show Edit Delete |]