WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.CGI.Frames
Synopsis
data FrameLayout
= ROWS
| COLS
data FrameSpacing
= FrameAbsolute Int
| FrameRelative Int
| FramePercent Int
data FrameSet = FrameSet {
unFrameSet :: (WithHTML () IO ())
}
makeFrameset :: CGIMonad cgi => FrameLayout -> [(FrameSpacing, cgi FrameSet)] -> cgi FrameSet
makeFrame :: CGIMonad cgi => WithHTML x IO () -> cgi () -> cgi FrameSet
framesetPage :: CGIMonad cgi => String -> cgi FrameSet -> cgi ()
Documentation
data FrameLayout
Overall layout of a frame set: row-wise or column-wise.
Constructors
ROWS
COLS
show/hide Instances
data FrameSpacing
Division of space between elements of a frameset. See http://wp.netscape.com/assist/net_sites/frame_syntax.html
Constructors
FrameAbsolute Intin pixels
FrameRelative Intthe * format
FramePercent Intthe % format
show/hide Instances
data FrameSet
Abstract data type of frame set generators.
Constructors
FrameSet
unFrameSet :: (WithHTML () IO ())
makeFrameset :: CGIMonad cgi => FrameLayout -> [(FrameSpacing, cgi FrameSet)] -> cgi FrameSet
Create a frameset, given a layout, its spacing, and its subframe(set)s.
makeFrame
:: CGIMonad cgi
=> WithHTML x IO ()additional attributes to frame
-> cgi ()contents of the frame
-> cgi FrameSetreturns HTML generator for the frame
Create a single frame. Returns the assigned name of the frame.
framesetPage :: CGIMonad cgi => String -> cgi FrameSet -> cgi ()
Required wrapper for pages with frames. Takes a title and a FrameSet generator and displays the page.
Produced by Haddock version 0.8