HTML
Splash!
PostScript
  
Template Toolkit Examples: Splash! Library: Panels

  frame
panel
box  

Panels

The splash/panel template generates a panel which can be positioned within a splash/frame. A frame can support multiple panels. In implementation terms, a frame is an HTML table and a panel is a tr/td combination.

Source #1:
    [%  WRAPPER splash/frame 
                width  = "100%"
    %]
    
        [% # default panel style
           INCLUDE splash/panel 
                   content = 'First Panel'
        %]
    
        [% # specify "select" style, tweak alignment
           INCLUDE splash/panel
                   style   = splash.style.select
    	       align   = 'center'
    	       content = 'Second Panel'
        %]
    
        [% # specify options directly
           INCLUDE splash/panel 
                   col     = 'grey50'
    	       pad     = 12
                   align   = 'right'
    	       content = 'Third Panel'
        %]
    
    [% END %]
Output #1:

First Panel
Second Panel
Third Panel


Source #2:
    [%  WRAPPER splash/frame;
    	INCLUDE splash/panel
    	    FOREACH content = ['one', 'two', 'three'];
        END
    %]
Output #2:

one
two
three


Source #3:
    [%  style = splash.style.select
        width = '75%' 
        pad   = 10
    %]
    
    [% WRAPPER splash/bar + splash/text 
               size='+1'
    %]
    University as a Marketplace
    [% END %]
    
    [% WRAPPER splash/frame %]
        [% WRAPPER splash/panel %]
        <b>
        Concentrated, cloistered universities, with 
        closed admission policies and rigid procedures
        which dictate who may teach a course, kill
        opportunities for learning.
        </b>
        [% END %]
    
        [% WRAPPER splash/panel col='white' %]
        The original universities in the middle ages
        were simply collections of teachers who 
        attracted students because they had something
        to offer.  They were marketplaces of ideas,
        located all over the town, where people could
        shop around for the kinds of ideas and 
        learning which made sense to them.
        [% END %]
    [% END %]
    
    [% WRAPPER splash/bar + splash/text
        invert  = 1
        align   = 'right'
        link    = 'menu.html'
    %]
    next &gt;&gt;&gt;
    [% END %]
    
Output #3:

University as a Marketplace
Concentrated, cloistered universities, with closed admission policies and rigid procedures which dictate who may teach a course, kill opportunities for learning.
The original universities in the middle ages were simply collections of teachers who attracted students because they had something to offer. They were marketplaces of ideas, located all over the town, where people could shop around for the kinds of ideas and learning which made sense to them.
next >>>