- contrib/examples
+ examples
* doc/dirstruc.txt
* doc/whatsnew.txt
* examples/hbdoc/Makefile
* examples/pp/Makefile
* examples/hboleold/Makefile
* examples/hbsqlit2/Makefile
* examples/misc/Makefile
* examples/hbapollo/Makefile
* examples/rdddbt/Makefile
* examples/guestbk/Makefile
* examples/pe/Makefile
* examples/hbgf/hbgfwin/Makefile
* examples/hbgf/hbgfos2/Makefile
* examples/hbgf/hbgfgtk/Makefile
* examples/hbgf/Makefile
* examples/uhttpd/readme.txt
* examples/dbu/Makefile
* examples/hscript/Makefile
* examples/hbwhat/Makefile
* examples/rl/Makefile
* examples/Makefile
* Moved to flatten our dir layout and sync the locations
in unified distro and source tree.
; TODO: As a next step I'll replace Makefiles with .hbm
files. This will allow users to build these parts
outside the source distribution.
45 lines
733 B
Haskell
45 lines
733 B
Haskell
<%
|
|
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
*
|
|
* hello.hs
|
|
* Famous "Hello World"!
|
|
*
|
|
* Written by Felipe Coury <fcoury@flexsys-ci.com>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
*/
|
|
|
|
FUNCTION Start()
|
|
|
|
// Add content-type parameter if using active page on a Web Server
|
|
IF !empty( GetEnv( "SERVER_NAME" ) )
|
|
OutStd( "HTTP/1.0 200 OK" + chr(10) )
|
|
OutStd( "CONTENT-TYPE: TEXT/HTML" + chr(10) + chr(10) )
|
|
ENDIF
|
|
|
|
%>
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Hello world!</TITLE>
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
<%
|
|
// Now saying hello to the world in 3 different ways:
|
|
// 1. Pure harbour:
|
|
OutStd( "<H1>Hello world!</H1></P>" )
|
|
|
|
// 2. Hybrid harbour-html:
|
|
%>
|
|
<H1><% OutStd( "Hello world!" ) %></H1></P>
|
|
<%
|
|
// 3. Pure html:
|
|
%>
|
|
<H1>Hello world!</H1></P>
|
|
</BODY>
|
|
</HTML>
|