Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
/**
* Gist Command - Easy way to embed a gist in Dokuwiki
* Usage: %gist(gist_id)%
* @license Three Clause BSD
* @author Yuvi Panda (http://yuvi.in)
*/
class CommandPluginExtension_gist extends CommandPluginExtension
{
function getCachedData($embedding, $params, $paramHash, $content, &$errorMessage)
{
return '<script src="http://gist.github.com/' . $content . '.js"></script>';
}
}
?>
@marceloxp

This comment has been minimized.

Show comment Hide comment
@marceloxp

marceloxp Jul 11, 2013

I got message: "Failed to load resource: the server responded with a status of 406 (Not Acceptable)"

I got message: "Failed to load resource: the server responded with a status of 406 (Not Acceptable)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment