graphiql.mustache 360 B

123456789101112131415
  1. <%#
  2. THIS MIGHT BE A DUMB WAY TO DO THIS
  3. There's a graphiql gem that runs graphiql in a rails engine, but i think
  4. it only works with the standard rails asset pipeline.
  5. %>
  6. <% content_for :head do %>
  7. <style>
  8. html, body, #graphiql { height: 100% }
  9. body { margin: 0 }
  10. </style>
  11. <% end %>
  12. <div id="graphiql"></div>
  13. <%= js_bundle :graphiql %>