How to render to not found templte in meteor js if the requested path is not there

26 views Asked by At

I have a meteor website I want to render to the not found template if user enters the url which is not the part of my website or I have not configured.

I have used flow router for the routing process.

Please help me out. how to do that I am just a newbie in meteorjs

1

There are 1 answers

0
Abhishek Goswami On

you should try this

FlowRouter.route('/*',{
      name: "routename",
      action: function () {
       BlazeLayout.render('layout', {
           main: "templatename"
       });          
    }
})