Safe Haskell | None |
---|
Snap.Utils.TargetPage
- deferFromTargetPage :: MonadSnap m => Text -> URL -> m a
- deferFromTargetPage' :: MonadSnap m => Text -> URL -> URL -> m a
- continueToTargetPage :: MonadSnap m => m a -> m a
- addTargetPageSplice :: HasHeist b => Snaplet (Heist b) -> Initializer b v ()
- targetPageISplice :: SnapletISplice b
- targetPageCSplice :: SnapletCSplice b
Documentation
deferFromTargetPage :: MonadSnap m => Text -> URL -> m aSource
Defer the target-page
deferFromTargetPage' :: MonadSnap m => Text -> URL -> URL -> m aSource
If redirecting from a POST action, the POST action wasn't the target. The referrer was. Just pass the target-url in directly instead of grabbing it from the request.
continueToTargetPage :: MonadSnap m => m a -> m aSource
addTargetPageSplice :: HasHeist b => Snaplet (Heist b) -> Initializer b v ()Source