I am not sure if this is the right place to ask but…
I use a package for server side rendering called meteorhacks:ssr. It is old but has worked reliably for years. Apparently blaze is undergoing active development again, because there are updates to it, spacebars-compiler and related packages. When I try update with --all-packages meteorhacks:ssr breaks with SpacebarsCompiler is undefined. Apparently this was a variable in global scope? Anyway, I pulled the source and I can see how to fix it for now with a kludge, but my question is
Is there a better more modern way to do SSR with blaze instead of this ancient package I am using? My specific use case is generating html and text as string for email templates using templates that use spacebars.
DETAILS:
Meteor update informs me
Newer versions of the following indirect dependencies are available:
* blaze 2.3.4 (2.4.0 is available)
* blaze-tools 1.0.10 (1.1.0 is available)
* caching-html-compiler 1.1.3 (1.2.0 is available)
* html-tools 1.0.11 (1.1.0 is available)
* htmljs 1.0.11 (1.1.0 is available)
* spacebars 1.0.15 (1.1.0 is available)
* spacebars-compiler 1.1.3 (1.2.0 is available)
* templating 1.3.2 (1.4.0 is available)
* templating-compiler 1.3.3 (1.4.0 is available)
* templating-runtime 1.3.2 (1.4.0 is available)
* templating-tools 1.1.2 (1.2.0 is available)
These versions may not be compatible with your project.
To update one or more of these packages to their latest
compatible versions, pass their names to `meteor update`,
or just run `meteor update --all-packages
So I try the updates. I get an exception on run from a package I use meteorhacks:ssr which is pretty old but has worked well for years.
ReferenceError: SpacebarsCompiler is not defined
at packages/meteorhacks_ssr.js:195:18
at packages/meteorhacks_ssr.js:226:4
at packages/meteorhacks_ssr.js:235:3
at /home/shartman/glo/dev/.meteor/local/build/programs/server/boot.js:401:38
at Array.forEach (<anonymous>)
at /home/shartman/glo/dev/.meteor/local/build/programs/server/boot.js:226:21
at /home/shartman/glo/dev/.meteor/local/build/programs/server/boot.js:464:7
at Function.run (/home/shartman/glo/dev/.meteor/local/build/programs/server/profile.js:280:14)
at /home/shartman/glo/dev/.meteor/local/build/programs/server/boot.js:463:13
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.