lively-vegetable-81321
02/28/2023, 2:47 PMsome-airline-73512
02/28/2023, 2:59 PMsome-airline-73512
02/28/2023, 2:59 PMlively-vegetable-81321
02/28/2023, 3:01 PMsome-airline-73512
02/28/2023, 3:02 PMsome-airline-73512
02/28/2023, 3:04 PMlively-vegetable-81321
02/28/2023, 3:07 PMmysterious-toddler-20573
02/28/2023, 3:49 PMtall-dinner-62086
02/28/2023, 3:52 PMlively-vegetable-81321
02/28/2023, 3:56 PMmysterious-toddler-20573
02/28/2023, 3:56 PMmysterious-toddler-20573
02/28/2023, 3:56 PMmysterious-toddler-20573
02/28/2023, 3:57 PMgreat-gold-37694
02/28/2023, 4:01 PMgreat-gold-37694
02/28/2023, 4:05 PMHX-Request
header but instead of just a boolean it'd be per typeclass instance (haskell) ... So
PeopleView.hs
haskell
-- This would be for the default HTML content type text/html
instance ToMarkup Socials where
toMarkup = socialH
--socialH :: Maybe Text -> Bool -> [Social] -> Html
socialH :: Socials -> Html
socialH (Socials socials q locked) = do
HtmlTable.hs
haskell
data HTMLTable
instance Accept HTMLTable where
contentType _ = "application" // "vnd.mycompany.people+html-table"
-- instance ToMarkup a => MimeRender HTMLTable a where
-- mimeRender _ = renderHtml . toHtml
instance MimeRender HTMLTable Socials where
mimeRender _ (Socials socials q _) = renderHtml $ socialTableH q socials
socialTableH :: Maybe Text -> [Social] -> Html
socialTableH q socials =
socials &
filter
great-gold-37694
02/28/2023, 4:05 PMif
/ else
on the request header?mysterious-toddler-20573
02/28/2023, 4:06 PMrefined-waiter-90422
02/28/2023, 4:07 PMmysterious-toddler-20573
02/28/2023, 4:07 PMhtmx:configRequest
and friends, it can be experimented with by usersgreat-gold-37694
02/28/2023, 4:08 PMgreat-gold-37694
02/28/2023, 4:08 PMrefined-waiter-90422
02/28/2023, 4:11 PMrefined-waiter-90422
02/28/2023, 4:11 PMadventurous-ocean-93733
02/28/2023, 8:54 PMmysterious-toddler-20573
02/28/2023, 8:58 PMadventurous-ocean-93733
02/28/2023, 8:58 PMadventurous-ocean-93733
02/28/2023, 8:59 PMlively-vegetable-81321
02/28/2023, 9:02 PMenough-petabyte-50314
03/01/2023, 12:33 AM