Skip to content

Instantly share code, notes, and snippets.

@properapp
Last active August 29, 2015 13:56
Show Gist options
  • Save properapp/9160850 to your computer and use it in GitHub Desktop.
Save properapp/9160850 to your computer and use it in GitHub Desktop.
Meteor - Iron Router: Set Current Page Title
Template.layoutAuthenticated.rendered = ->
# Get the page title (set in the router)
pageTitle = Session.get 'currentPageTitle'
if pageTitle
document.title = pageTitle + ' | Proper'
else
document.title = 'Proper'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment