title: Render jade template with parameters that are angular binded upon render
body: <p>Upon request I render a jade template passing some parameters to template</p>
  
  <pre><code>res.render("result.jade",{order_id: "abc123"});
  </code></pre>
  
  <p>What is the best way to bind this passed parameters to scope variables when being rendered on client side? I haven't found any good solution except to render it to some hidden dom element and then take its text value (with jquery, for example) and assign it to scope variable, like this</p>
  
  <pre><code>// jade template
  div.hidden #{order_id}
  
  
  // javascript code
  $scope.order_id = $(".hidden").text();
  </code></pre>