head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2001.06.12.17.04.47;	author jefflove;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.16;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.2
log
@html usage/syntax revision
@
text
@<html><head><title>Hello, World!</title></head>

##  You have to set the content type. You could do this from
##  the servlet instead--but this way your page designer can 
##  change it if XML was wanted. What the line below does is 
##  use Velocity's introspection to find and use the method:
##
##     WebContext.getResponse().setContentType("text/html")

#set( $Response.ContentType = "text/html" )

## Now the rest of your HTML, including a few example Velocity 
## statements, just for fun. Note the use of the $Hello variable
## which is defined in the HelloWorld servlet.
<body>
<h1>Velocity is working!</h1>
<ul>
#set( $go = "<b>$Hello</b>"
#foreach $count in [ five four three two one $go ] {
    <li>$count
#end
</ul>


</body></html>
@


1.1
log
@Adding Velocity templates.
@
text
@d6 1
a6 1
##  use WebMacro's introspection to find and use the method:
d12 1
a12 1
## Now the rest of your HTML, including a few example WebMacro 
d15 2
a16 2

<h1>WebMacro is working!</h1>
d18 1
a18 1
#set( $go = "<font )color=red size=+1><b>$Hello</b></font>"
a23 1
Thanks for looking into WebMacro!
@

