comp.lang.ada
 help / color / mirror / Atom feed
* HTML/CGI packages available...
@ 1997-06-13  0:00 Dale Stanbrough
  0 siblings, 0 replies; only message in thread
From: Dale Stanbrough @ 1997-06-13  0:00 UTC (permalink / raw)



A few (very) simple packages that output html source code are available at

	http://www.cs.rmit.edu.au/~dale/cgi/index.html

These allow you to create Web pages from within a Ada program, without
having lots of ugly HTML syntax dirtying up your pretty source code.

An example use...


with Ada.Text_IO; use Ada.Text_IO;
with HTML;        use HTML;
with HTML.Tables; use HTML.Tables;

procedure Tables is

begin
   Table;
      Row;
         Detail;
            Put ("Row 1, Col 1");
         Detail;
            Put ("Row 1, Col 2");
            
         Detail_End;
      Row_End;
      
      Row (ColSpan => 2, Align => Center);
         Detail;
             Anchor ("http://www.adahome.com");
             Put ("Full 'o Stuff");
             Anchor_End;
      Row_End;
   Table_End;
   
end Tables;


Let me know if you find it useful...

Dale




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-06-13  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-13  0:00 HTML/CGI packages available Dale Stanbrough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox