Meteor Iron Router splash message edit -
i change splash message of iron router failure .instead of "organize meteor application" ,add user friendly.how start issue ??
it hard coded here in iron:router repo. can fork , change line yours.
but why need this? line 54 here can give idea of how iron:router
uses 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 don't have routes defined , no config notfoundtemplate
, see such message, define via router config.
router.configure({ layouttemplate: 'layout', notfoundtemplate: 'pagenotfound' });
Comments
Post a Comment