WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.CGI.Frames

Synopsis

Documentation

data FrameLayout Source

Overall layout of a frame set: row-wise or column-wise.

Constructors

ROWS 
COLS 

Instances

data FrameSpacing Source

Division of space between elements of a frameset. See http://wp.netscape.com/assist/net_sites/frame_syntax.html

Constructors

FrameAbsolute Int

in pixels

FrameRelative Int

the * format

FramePercent Int

the % format

Instances

data FrameSet Source

Abstract data type of frame set generators.

Constructors

FrameSet 

makeFrameset :: CGIMonad cgi => FrameLayout -> [(FrameSpacing, cgi FrameSet)] -> cgi FrameSetSource

Create a frameset, given a layout, its spacing, and its subframe(set)s.

makeFrameSource

Arguments

:: CGIMonad cgi 
=> WithHTML x IO ()

additional attributes to frame

-> cgi ()

contents of the frame

-> cgi FrameSet

returns HTML generator for the frame

Create a single frame. Returns the assigned name of the frame.

framesetPage :: CGIMonad cgi => String -> cgi FrameSet -> cgi ()Source

Required wrapper for pages with frames. Takes a title and a FrameSet generator and displays the page.