function applyGist($matches) { $url = "{$matches['1']}.js"; $gist = new Gist($url); return $gist->code(); }