title: Access user profile information for onRender template using iron-router
body: <p>I'm trying to access user data in code on the client for my user profile pages onRendered.</p>
  
  <p>I have this in my client:</p>
  
  <pre><code> Template.profile.onRendered(function () {
        $('#qrblock').qrcode({text: &lt;I want to show user's qrUrl here&gt;});
      });
  </code></pre>
  
  <p>Here is the user schema when a user is created:</p>
  
  <pre><code>Accounts.createUser({
      username: username,
      emails: [
        { address: email, verified: false }
      ],
      password: password,
      createdAt: new Date(),
      profile:{
        firstName: firstName,
        lastName: lastName,
      },
      qrUrl: 'test.meteor.com/@' + username
    },
  ...
  ...
  ...
  </code></pre>
  
  <p>Here is my template:</p>
  
  <pre><code>&lt;template name="profile"&gt;
  &lt;div class="container-fluid"&gt;
      Username:   {{username}}&lt;br /&gt;
      {{#with profile}}
          Profile name: {{firstName}} {{lastName}}
      {{/with}}
      &lt;div id="qrblock"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Here's my router and controller:</p>
  
  <pre><code>Router.route('/@:username', {
    name: 'profile',
    controller: 'ProfileController'
  });
  
  ProfileController = RouteController.extend({
    template: 'profile',
    waitOn: function() {
      return Meteor.subscribe('userProfile', this.params.username);
    },
    data: function() {
      var username = Router.current().params.username;
      return Meteor.users.findOne({
        username: username
      });
    }
  })
  </code></pre>
  
  <p>I'm not very great with the meteor routing stuff so that's confusing me when it comes to accessing user data for a specific profile page.  I hope what I'm trying to do is even possible.</p>
  
  <p>How do I use user data in my profile Template onRendered function?</p>