<?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>';
    }
}
?>