Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Yitle[]<==>
.. _gist-response:
Pass response directly from Gist
While the fiddle might use Ajax requests jsFiddle will read them and send using the right MIME type.
Input
It is important to have gist responses prepared for jsFiddle.
Gist files
Run in jsFiddle
URL:
/gh/get/response.{extension}/{gist_id}/
where:gist_id
Id of the gist (url without "http://gist.github.com/")
extension
the file extension of the fiddle.response.{extension} in gist
.. note::
There is no JSONP functionality provided. One may achieve it using raw gist URL.
Example
Content of the http://gist.github.com/raw/606699/fiddle.response.html
will be returned with text/html MIME type if this url will be loaded
http://jsfiddle.net/gh/gist/response.html/606699/
using Ajax request.Here it is working within the
jsFiddle <http://jsfiddle.net/gh/gist/mootools/1.2/606699/>
_