title: How to use post method in Twig syntax
body: <p>Hi I am trying to convert tpl file into twig syntax following code which uses twig .
  My question is is it possible to use post function in twig syntax?</p>
  <pre><code>&lt;script&gt;
   $(document).ready(function(){$('#jb-cancel-order').click(function(){
   if(confirm('Are you sure want to cancel this?')) {
   $.post('index.php?route=account/order/jbcancelorder',{order_id: {{order_id}},email:'{{customer_email}}'},function(e){
  if(e.status=='ok'){
      $('#jb-cancel-order').remove();
  }
  },'json');
  }
  return false;
  });});
  &lt;/script&gt;]]&gt;
  </code></pre>
  <p>While running the webpage its only showing popup message without any action as expected.Cancellation is not fired.Post method is not working. Reference code: <a href="https://github.com/jericbas/jb_allow_order_cancel_24_hours" rel="nofollow noreferrer">https://github.com/jericbas/jb_allow_order_cancel_24_hours</a></p>
  <p>Thanks in Advance</p>