Hello World

As with any tool, it's always nice to see something work, so let's create a small "Hello World" page.

Assuming you have Apache configured correctly, create a file called hello.rvt where Apache can find it, with the following content:

<html>
  <head>
    <title>Hello World</title>
  </head>
  <body>
    <pre>
      <b><? puts "Hello world" ?></b>
    </pre>
  </body>
</html>

The example can be elaborated, for example using the html command

<? set hello_message "Hello world" ?>
<html>
  <head>
    <title><? puts $hello_message ?></title>
  </head>
  <body><?
    puts [html $hello_message pre b]
  ?></body>
</html>

Last Modified: 06-11-2011 11:47:35 UTC
Design downloaded from free website templates.