Meteor:导出渲染模板供离线使用

Meteor: Exporting rendered template for offline use

我有一个在线工具供用户创建和预览幻灯片演示(上传图片、编辑文本)。

是否有办法 "export" 渲染幻灯片的内容供离线使用?这意味着用户可以仅使用静态文件在浏览器中本地查看演示文稿。

使用 var myRenderedHTML = Blaze.toHTMLWithData(templateYouWantToCache, dataUsedToRenderTemplate);

然后使用类似 Filesaver.js library to force download of that content as an HTML file. (as in the last demo on this page)