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 : ... <body> <% def greeting %> <% "Hello world!" %> <% end %> <%= greeting %> </body> ... 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: > > <script src="path/to/hello.rb" type="text/ruby"></script> > > How would I make the function call? >