Webmaster  |  Imprint 
C++ Server Pages
Main  |  License  |  Documentation  |  Download 

Hello

Example: Hello application

<#
  this is a simple hello-world-application
#>
<%args>
name;            // define query-parameter
                 // this defines a variable of type std::string with
                 // the name "name"
</%args>
<html>
 <head>
  <title>Hello World-application for tntnet</title>
 </head>

 <body bgcolor="#FFFFFF">
  <img src="tntnet.jpg" align="right">

  <h1>Hello <$ name.empty() ? "World" : name $></h1>

  <form>
   What's your name?
   <input type="text" name="name" value="<$name$>"> <br>
   <input type="submit">
  </form>

 </body>
</html>

Copyright © 2008 The Tntnet Development Team
Tntnet 1.6