Is it possible to create a page from a string?
example:
html = \'blah blah blah\' page.open(html,
It's very simple, take a look at the colorwheel.js example.
var page = require('webpage').create(); page.content = 'Hello world';
Hello world
That's all! Then you can manipulate the page, e.g. render it as an image.