Hello,

First of all, Thank You for your efforts of supporting Tcl under Apache
Server. This definitely eliminates the need for me to learn yet another
language to port my applications to web.

I just installed the latest version of Rivet (v2) on Debian 6 Squeeze and
could successfully browse through the example .rvt pages found on Rivet
Home Page.

This is a question on the pages written with .tcl extension. My
understanding was that the .tcl and .rvt extensions are mutually
exchangeable.  However, when I renamed a .rvt file to .tcl and invoked it
from the browser, I get errors on the page.

.tcl file content (.rvt renamed to .tcl):
---------------------------------------------------

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


view-source output from the browser (chrome):
---------------------------------------------------------------

<PRE>
> <HR>invalid command name "<?"
>     while executing
> "<? set hello_message "Hello world" ?>"<HR>
> <P><B>OUTPUT BUFFER:</B></P>
> <? set hello_message "Hello world" ?>
> <html>
>   <head>
>     <title><? puts $hello_message ?></title>
>   </head>
>   <body><?
>     puts [html $hello_message pre b]
>   ?></body>
> </html>
> </PRE>


Content of rivet.conf file placed in mods-enabled folder is:
----------------------------------------------------------------------------

<IfModule mod_rivet.c>
>         # Let the module handle .rvt and .tcl files.
>         AddType application/x-httpd-rivet rvt
>         AddType application/x-rivet-tcl tcl
>         # The default charset can be specified in the configuration
>         AddType "application/x-httpd-rivet; charset=utf-8" rvt
> </IfModule>



Please explain.... may be my understanding of .rvt and .tcl extensions are
exchangeable isn't correct!?

Best Regards,
Nagu.

Reply via email to