tmeasday / meteor-router

MIT License
366 stars 76 forks source link

Add template name param to renderPage helper #11

Closed tomconroy closed 11 years ago

tomconroy commented 11 years ago

For use mainly in the meteor-transitioner project. but may have other applications. For example:

{{renderPage currentScreen}}

or

[[renderPage "news"}}

(second one untested)

The checking of template name is a little hairy. Not sure the best way of checking if something is passed in?

tmeasday commented 11 years ago

Thanks Tom! Yeah, I checked in a slightly different way, much appreciated.