!!! 5
html
  head
  body
    form(method="post",enctype="multipart/form-data",action="/")
      input(type="file", name="img")
      input(type="submit",value="Submit")
    div#result
    script(src='jquery/jquery.js')
    script(src='framejax.js')
    script
      $('form')
        .framejax()
        .on('complete', function(e, result) {
          $('#result').html(result);
        });

!!! 5
html
  head
  body
    form(method="post",enctype="multipart/form-data",action="/")
      input(type="file", name="img")
      input(type="submit",value="Submit")
    div#result
    script(src='jquery/jquery.js')
    script(src='framejax.js')
    script.
      $('form')
        .framejax()
        .on('complete', function(e, result) {
          $('#result').html(result);
        });

Update to maintain compatability with the latest version of jade
Update to maintain compatability with the latest version of jade