jonleighton/poltergeist — pull request #164 by uu59 (2012-09-26 15:04:52+00:00)
Title: Add multiline script evaluation. 

Hi!

I've been using multiple line script for `evaluate_script` heavily such as below:

display = evaluate_script <<-JS
$('img.lightbox:first').click();
document.querySelector('#lightbox-popup').style.display;
JS
display.should == "block"

So I need this syntax.

Bonus:
this patch allows you to use semicolon anywhere in `evaluate_script` such as `var a=3; a+5;` returns `8`;