Created
August 14, 2013 20:17
-
-
Save ChristianGaertner/6235154 to your computer and use it in GitHub Desktop.
[IDEA] PhantomJS Dynamic HTML render-engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var page = require(‘webpage’).create(); | |
| page.viewportSize ={ width: 200, height : 200 }; | |
| page.content = “GoogleChart goes here”; //maybe load a skeleton here and replace some data. | |
| page.setContent(page.content,page); | |
| window.setTimeout(function () { | |
| page.render(‘newimage.png’); | |
| phantom.exit(); | |
| }, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment