I would like to change the splash message of Iron Router failure .Instead of "Organize Your Meteor Application" ,add something user friendly.How to start with this issue ??
It is hard coded here in iron:router repo. You can fork it and change this line to yours.
But why do you need this? Line 54 here can give you the idea of how iron:router
uses your templates.
Router.prototype.lookupNotFoundTemplate = function () {
if (this.options.notFoundTemplate)
return this.options.notFoundTemplate;
return (this.routes.length === 0) ? NO_ROUTES_TEMPLATE : DEFAULT_NOT_FOUND_TEMPLATE;
};
Only if you don't have any routes defined and no config for notFoundTemplate
, you will see such message, define it via router config.
Router.configure({
layoutTemplate: 'layout',
notFoundTemplate: 'pageNotFound'
});