title: iron:router syntax Layout
body: <p>I am using iron router to render a template within meteor framwork, as i was following probably an outdated tutorial, it seems to me there is a change in syntaxes which i could not figure out.</p>
  
  <p>layout.html
  </p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;div class="span2"&gt;
              &lt;p&gt;cell&lt;/p&gt;
          &lt;/div&gt;
              &lt;div class="span7"&gt;
                  &lt;p&gt;cell&lt;/p&gt;
              &lt;/div&gt;
                  &lt;div class="span3"&gt;
                      &lt;p&gt;cell&lt;/p&gt;
                  &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>index.js</p>
  
  <pre><code>function.setDefault ('category', null );
  Router.configure({
      layoutTemplate:'layout',
      yieldTemplates:{
          'products':{to:'products'},
          'cart':{to:'cart'},
          'categories':{to:'categories'}
      }
      });
  Router.route(function(){
  
      this.route('/', layout);
      this.route('/products',{
          data:function(){
              Session.set('category',this.params.name);
  
      },
      template:'layout',
      path:'/:name'
      })
  });
  </code></pre>
  
  <p>The following error occurs
  unexpected token (1:8) </p>