!!! 5
html(lang='en')
  head 
    meta(charset='utf-8')
    script(type="text/javascript", src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js")
    title random imgur
    script
      function wat() {
        $.get("/api/imgur/getRandomImage", function(d) {$('#image').attr('src', d.data[0])}, "json");
      };
      $(wat());
      $(document).keypress(wat);
  body
    div#container
      img#image(style='width: 100%')