In the app I have created in 1.2 I use SSR to generate Templates from which I can then render data into the pdf gen app, wkhtmltopdf. It works great with few issues.
Alas the problems arise from the fact that I am now trying to make this work in Meteor 1.3, with Blaze and although still early days in my trials, I am hitting a buffer.
From what I can see there may be 1/2/3 solutions, though maybe someone can add insight or their own solution:
-
Use React and build the downloads/documents solution in FlowRouter with SSR with React. Certainly not the end of the world, but not my preferred choice at this point.
-
Maybe push the templates into package which may well then be imported, and accessible server side. Yet to try this option.
-
Hack together some node/fibers/fs solution to read HTML from the files (assuming they can be compiled in as assets) and pump them into the imported Templates/Blaze objects.
Any other thoughts/ideas/solutions are welcome.
I know Galaxy has SSR within the service, so this is either coming to Meteor 1.3 (i hope) or I need to sign up for Galaxy (not my hope)
Thanks in advance!
V -