From: "côme" Date: 2006-12-22T06:15:06+09:00 Subject: Re: External Ruby Script in HTML Hi, I think the best way is to use eruby. You then just have to put your script inside '<%' and '%>' (no output in the html) or '<%=' and '%>' (with output). For instance : ... <% def greeting %> <% "Hello world!" %> <% end %> <%= greeting %> ... I hope this will help. Naked Sushi a écrit : > This probably has a simple answer, but I don't know it. > > 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? Within the HTML document, would I just treat it the same way I call > external javascript: > > > > How would I make the function call? >