module IHP.FlashMessages.ViewFunctions where
import IHP.FlashMessages.Types
import qualified Text.Blaze.Html5 as Html5
import IHP.ViewSupport
import IHP.View.Types
import IHP.Controller.Context
renderFlashMessages :: (?context :: ControllerContext) => Html5.Html
renderFlashMessages :: (?context::ControllerContext) => Html
renderFlashMessages = [FlashMessage] -> Html
render [FlashMessage]
flashMessages
where
flashMessages :: [FlashMessage]
flashMessages :: [FlashMessage]
flashMessages = [FlashMessage]
forall value.
(?context::ControllerContext, Typeable value) =>
value
fromFrozenContext
render :: [FlashMessage] -> Html5.Html
render :: [FlashMessage] -> Html
render = Proxy "styledFlashMessages" -> [FlashMessage] -> Html
forall (field :: Symbol) appliedFunction.
(?context::ControllerContext, KnownSymbol field,
HasField field CSSFramework (CSSFramework -> appliedFunction)) =>
Proxy field -> appliedFunction
fromCSSFramework Proxy "styledFlashMessages"
#styledFlashMessages