Create a router without URL?


I am rendering a template using: {{render "login"}}

I have created a route for this template, because I want to tie a model to it and use nifty handlebars and forms updating the model.

I only want this template to be available for {{render}}. Is it possible to make this template hidden from the browser window? So that it can’t be reached with an URL?



To prevent it from being bound to a url you just need to not include an entry in router.js. I’m pretty sure the route is also ignored when you’re using the render helper, instead you pass the model in as a parameter e.g.

{{render "login" loginModel}}


Awesome. Thanks. Exactly what I needed