yu-core-0.1.1.2: The core of Yu.

Copyright(C) 2017-2018 Johann Lee <me@qinka.pro>
LicenseGPL3
Maintainerme@qinka.pro
Stabilityexperimental
Portabilityunknow
Safe HaskellNone
LanguageHaskell2010

Yu.Core.View

Contents

Description

The view part of the Yu.

Synopsis

responds

respondPost Source #

Arguments

:: (Yesod a, Hamletic a (HandlerT a IO)) 
=> ResT

resource index

-> Html

html body

-> HandlerT a IO TypedContent 

response the post with ResT and html

respondResourceT Source #

Arguments

:: (Yesod a, Hamletic a (HandlerT a IO)) 
=> ResT

resource index

-> Text

text

-> HandlerT a IO TypedContent 

respond resource(text)

respondResourceB Source #

Arguments

:: (Yesod a, Hamletic a (HandlerT a IO)) 
=> ResT

resource index

-> ByteString

text

-> HandlerT a IO TypedContent 

respond resource(binary)

respondStatic Source #

Arguments

:: (Yesod a, Hamletic a (HandlerT a IO)) 
=> ResT

index for resource

-> Text

Url

-> HandlerT a IO TypedContent 

response the static url

reexport module