mtippin
23 Apr 2012, 12:26 PM
I'm working on a Sencha Touch 2 app that will collect various pieces of information from the user, merge that data into an existing HTML template (deployed as a resource file with the Sencha app), submit the resulting HTML document to an HTML-to-PDF web service such as www.docraptor.com and then display the resulting PDF to the user.
The twist in all of this is that the generated HTML document won't be displayed on-screen, and all of the XTemplate examples I've seen are focused on building dynamic HTML for display.
It seems my biggest initial hurdle is reading the HTML template out of a file and into memory where I can work with it as an XTemplate, then potentially saving the resulting HTML to a file on the local filesystem.
Can anyone point me in the right direction to get started? Any suggestions would be appreciated!
The twist in all of this is that the generated HTML document won't be displayed on-screen, and all of the XTemplate examples I've seen are focused on building dynamic HTML for display.
It seems my biggest initial hurdle is reading the HTML template out of a file and into memory where I can work with it as an XTemplate, then potentially saving the resulting HTML to a file on the local filesystem.
Can anyone point me in the right direction to get started? Any suggestions would be appreciated!