Closed Janiczek closed 5 years ago
I guess we can raise the question - should it be named viewMaybe
, given there already is viewIf
?
Hmm, well viewIf
is necessary because if
is a keyword. It'd be nice if that could just be used like Html.if
but I suppose we should keep the naming standardized so if you want to push that change, I'll merge and make a new release.
Thanks! Merged & pushed a new version.
This has been useful for us, as we littered our codebase with
case maybe of ... Nothing -> Html.nothing
andMaybe.unwrap Html.nothing ...
:smile: