embed rebol in html
[1/12] from: louisaturk::coxinet::net at: 21-Aug-2002 10:59
Is it possible to use rebol in the place of javascript? Something like:
<html>
<body>
<script language="rebol">forever [print now/time]</script>
</body>
</html>
Louis
[2/12] from: jason:cunliffe:verizon at: 21-Aug-2002 13:17
Magic! by Oliver Auverlot lets one embed REBOL source in HTML pages between
<REBOL></REBOL> tags.
A single REBOL script needs to be installed in Apache /cgi-bin. Set the script
permissions and add two lines to httpd.conf.
Then restart Apache.. et voila!
http://www.rebolfrance.org/telechargement.html
./Jason
[3/12] from: maarten:koopmans:surfnet:nl at: 21-Aug-2002 21:29
This already exists for a year or two and was called erebol /Rebol Server
Pages / ... Carl has included a slightly enhanced version by him and Ernie
van der Meer in the new beta of Core and View: build-markup
erebol / build-markup use tje <% %> tags like ASP which makes it much more
compatible with popilar web editing tools.
--Maarten
On Wed, 21 Aug 2002, Jason Cunliffe wrote:
[4/12] from: jason:cunliffe:verizon at: 21-Aug-2002 17:33
aah .. Sorry Maarten I had forgotten about erebol.
I gather the best place to get it now is: http://www.rebolforces.com/~erebol/
as part of the mighty handy 'Rebol Standard Library 1.000' ?
For the new 'build-markup' - Where are there any docs on it ?
Magic! is designed to be used with Apache. Pages containing <REBOL></REBOL> tags
are thus named .rhtml and Apache config picks them up and passes the page for
processing.
I like this .rhtml scheme as its easy to know what pages are what.
Magic! adds some features: passing values from HTML forms, security settings to
control which folders are accessible, named library path function, cookie
control, and MIME header redefinition.
For comparison, I'd be interested to learn more precisely about erebol
installation and your thoughts about various approaches/pros/cons for rebol
server side scripting.
I am a big fan of Vanilla, so I am interested to integrate this functionality
there. Vanilla already does all sorts of clever server side scripting, but the
current version defers to use call its own 'dynasnips' which require full FTP
access to install as modular library. Regular Vanilla users thus can call
dynasnips, but not create them. Direct tagged scripting like this in Vanilla
would be very helpful for through-the-web scripting, provided one can manage
permissions in a suitable fashion to match user and system status.
thanks
./Jason
[5/12] from: louisaturk:coxinet at: 21-Aug-2002 16:58
Maarten,
At 09:29 PM 8/21/2002 +0200, you wrote:
>This already exists for a year or two and was called erebol /Rebol Server
>Pages / ... Carl has included a slightly enhanced version by him and Ernie
>van der Meer in the new beta of Core and View: build-markup
Do you mean that it is included with the source code of beta of core and view?
>erebol / build-markup use tje <% %> tags like ASP which makes it much more
>compatible with popilar web editing tools.
Where can I get more detailed information?
Louis
[6/12] from: louisaturk:coxinet at: 21-Aug-2002 16:52
Hi Jason and Maarten,
Many thanks. How is this set up to work on a Win2k server?
Louis
At 09:29 PM 8/21/2002 +0200, you wrote:
[7/12] from: petr:krenzelok:trz:cz at: 22-Aug-2002 0:33
-- Unable to decode HTML file!! --
[8/12] from: jason:cunliffe:verizon at: 21-Aug-2002 18:47
Magic! is for Apache, though presumably one could use some other server.
The 2 crucial lines suggested to add to Apache's config are:
AddHandler magic rhtml
Action magic /cgi-bin/magic.cgi
This tells Apache to run a program 'magic' whenever its finds a page whose
suffix is .rhtml
Then it defines the path for the REBOL script, which happens to be named
'magic.cgi'.
The first line of that script must point to the server's REBOL installation.
On Windows this might be
#!c:/rebol/rebol -cs
I know of no reason why Win2k should present any problem.
I'd welcome to learn what the equivalent instructions are for erebol and with MS
IIS
./Jason
[9/12] from: al:bri:xtra at: 22-Aug-2002 19:53
Louis wrote:
> Is it possible to use rebol in the place of javascript? Something like:
>
> <html>
> <body>
> <script language="rebol">forever [print now/time]</script>
> </body>
> </html>
No, not at the client side (in the browser). As others have written, it's
possible to use Rebol on the server to manipulate what's sent to the
browser.
Louis wrote:
> How is this set up to work on a Win2k server?
That's a bit trickier. We've got Rebol running as a CGI on a Windows 2000
network and server (version 6 IIRC) (running the local high school's
Rebol/Wiki). But I've forgotten (already!) how we did it. :( The documented
procedures we've found on the net didn't work (don't know why). The system
we ended up with was to create a new directory in the server software (not a
real file) and specify some information in there to locate where the Rebol
software was and the paths to use. Then it all started working.
If that's not enough help, email me directly at my school email address:
[Andrew--Martin--colenso--school--nz] and I'll talk with the network administrator
and try to get some .bmp pictures of the server software showing the
settings we used.
I hope that helps!
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[10/12] from: al:bri:xtra at: 22-Aug-2002 19:56
Jason wrote:
> For the new 'build-markup' - Where are there any docs on it ?
Use the source, Luke! :)
>> source build-markup
build-markup: func [
{Return markup text replacing <%tags%> with their evaluated results.}
content [string! file! url!]
/quiet "Do not show errors in the output."
/local out eval value
][
content: either string? content [copy content] [read content]
out: make string! 126
eval: func [val /local tmp] [
either error? set/any 'tmp try [do val] [
if not quiet [
tmp: disarm :tmp
append out reform ["***ERROR" tmp/id "in:" val]
]
] [
if not unset? get/any 'tmp [append out :tmp]
]
]
parse/all content [
any [
end break
| "<%" [copy value to "%>" 2 skip | copy value to end] (eval
value)
| copy value [to "<%" | to end] (append out value)
]
]
out
]
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
[11/12] from: gscottjones:mchsi at: 22-Aug-2002 6:53
From: "Andrew Martin"
> Jason wrote:
> > For the new 'build-markup' - Where are there any docs on it ?
>
> Use the source, Luke! :)
<snip>
.. And 'build-markup (inspired by Maarten Koopmans and Ernie van der Meer)
and 'build-tag (created by our modest, light-sabre wielding super-hero,
Andrew Martin) are further explained in the beta documentation:
http://www.rebol.com/docs/core25n.html#sect2.11.
--Scott Jones
[12/12] from: jason:cunliffe:verizon at: 22-Aug-2002 9:56
> .. And 'build-markup (inspired by Maarten Koopmans and Ernie van der Meer)
> and 'build-tag (created by our modest, light-sabre wielding super-hero,
> Andrew Martin) are further explained in the beta documentation:
>
> http://www.rebol.com/docs/core25n.html#sect2.11.
aah Lovely, Thank you :-)
./Jason