Last active
August 29, 2015 13:56
-
-
Save properapp/9160850 to your computer and use it in GitHub Desktop.
Meteor - Iron Router: Set Current Page Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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