module Web.View.Hubs.Index where import Web.Types import Generated.Types import IHP.Prelude import IHP.ViewPrelude data IndexView = IndexView { hubs :: ![Hub] } instance View IndexView where html IndexView { .. } = [hsx|

Hubs

New Hub
{forEach hubs renderHub}
Name Slug Domain
|] renderHub :: Hub -> Html renderHub hub = [hsx| {hub.name} {hub.slug} {hub.domain} Edit Delete |]