Skip to content

Conversation

usernamealreadyis
Copy link

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

  • fiddle.response.html
  • fiddle.response.json
  • fiddle.response.xml

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/>_

is a description of the demo written in YAML, structure compatible with MooTools docn
Merge pull request #1 from usernamealreadyis/patch-1
@Newread23 Newread23 mentioned this pull request Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant