From: Eric Schwartz Date: 2006-12-22T14:20:07+09:00 Subject: Re: External Ruby Script in HTML Naked Sushi writes: > This probably has a simple answer, but I don't know it. The answer is "no". :) > Let's say I have a ruby script called hello.rb > > #!/usr/bin/ruby > def greeting () > return "Hello world!" > end > > I want to call that script from within an HTML document. How would I do > so? You can't. > Within the HTML document, would I just treat it the same way I call > external javascript: It's not javascript, so no. > How would I make the function call? Use eruby as someone suggested, use server-parsed html (SHTML), use a CGI instead of a plain HTMl file, probably something else I haven't thought of. But you can't do it with just plain HTML. -=Eric