If I create ruby (or maybe not ruby, no difference) script in TextMate which produces html, is there an easy way to preview it using combination like ⌘R or using Web Preview?

Now I found two ways to preview html: using bcatruby script.rb | bcat, but I need to close browser tab every time and rerun script, or running this script on a web server, but this way is also not easy one.

link|improve this question

62% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.