I have a Meteor app and would like to host an HTML page.
I can put my index.html
page and content inside meteors public/main/
folder, so it would be accessible by 127.0.0.1/main/index.html
.
But surely there must be a better way. I have the Kadira FlowRouter package and Blaze templates if it helps.
I tried:
FlowRouter.route('/main', {
action(params) {
window.location.href=pathToPage;
}
});
But it didn't work when moving my page out of the public folder.
The page itself is an HTML and javascript page.
Try using the
static-html
package.From the package description: