|  | HTML |  |
|  | Splash! |  |
|  | PostScript |  |
| Template Toolkit Examples: Splash! Library: Container Frames |

| tab
|  | frame |  |
panel |
# Container Frames The splash/frame template create a frame with an optional border into which splash/panel template can be embedded. It is implemented as an HTML table.
Source #1:
    [% WRAPPER splash/frame %]
    <tr>
     <td> Foo Bar Baz </td>
    </tr>
    [% END %]
| Output #1:
Foo Bar Baz
Source #2:
    [% WRAPPER splash/frame
    	   style = splash.style.select
    %]
    <tr>
     <td> Foo Bar Baz </td>
    </tr>
    [% END %]
| Output #2:
Foo Bar Baz
Source #3:
    [% WRAPPER splash/frame
    	   style  = splash.style.select
    	   border = 8
    	   bgcol  = 'white'
    %]
    <tr>
     <td> This is some more content </td>
    </tr>
    [% END %]
| Output #3:
This is some more content
Source #4:
    [% WRAPPER splash/frame
    	   style  = splash.style.select
    	   border = 0
    	   pad    = 10
    %]
    <tr>
     <td> This has no border </td>
    </tr>
    [% END %]
| Output #4:
This has no border
Source #5:
    [% WRAPPER splash/frame
               width = "80%"
    %]
    <tr>
      <td colspan="2" align="middle">
        A frame is implemented as a table
      </td>
    </tr>
    <tr>
      <td align="left">
        Left
      </td>
      <td align="right">
        Right
      </td>
    </tr>
    [% END %]
| Output #5:
A frame is implemented as a table
Left | Right