RSP -"Hello world"



Also check Cheyenne's page about RSP

In RSP scripts, Cheyenne interprets anything in between "<%"  and "%>"  as Rebol code!

Open your index.html (the one you created in the "Installing and configuring..." chapter) with a plain text editor, add the following highlighted lines and save it in the www folder as myindex.rsp.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<% print "Hello world" %>

<html>

<head>

 <meta content="text/html; charset=ISO-8859-1"

http-equiv="content-type">

 <title></title>

</head>

<body>

<h2 style="text-align: center;">Congratulations! Your

Cheyenne server is working!</h2>

<div style="text-align: center;">Have a nice day!</div>

<% print 55 + 88 %>

</br>

</body>

</html>

<% print rejoin ["Time now is " now/time] %>


With Cheyenne running (listening to default port 80), type localhost/myindex.rsp on your browser's address bar. You should get this:


< Previous topic                                                                                          Next topic >