demo

    public function demo()
    {
        $name = preg_replace('~[^a-z0-9_-]+~ims', '', trim($_GET['page'] ?: $_GET['id']));
        if ( ! $name) {
            return _404();
        }
        $cls_assets = _class($assets);
        $all = $this->_get_assets();
        if ( ! isset($all[$name])) {
            return _404();
        }
        $content = $all[$name]['content'];
        if (is_callable($content)) {
            $content = $content($cls_assets);
        }
        asset($name);
        if (isset($content['demo'])) {
            $demo = $content['demo'];
            if (is_callable($demo)) {
                $demo = $demo();
            }
            $out[] = $demo;
        }
        $out[] = '<pre><code>' . _prepare_html(var_export($content, true)) . '</code></pre>';
        return implode('<br>' . PHP_EOL, $out);
    }
array (
  'versions' => 
  array (
    '4.6.3' => 
    array (
      'css' => '//cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.css',
      'js' => '//cdnjs.cloudflare.com/ajax/libs/fotorama/4.6.3/fotorama.js',
    ),
  ),
  'require' => 
  array (
    'asset' => 'jquery',
  ),
  'info' => 
  array (
    'url' => 'http://fotorama.io/',
    'name' => 'Fotorama - A simple, stunning, powerful jQuery gallery.',
    'desc' => 'Fotorama is a simple, stunning, powerful jQuery gallery. All browsers, touch gestures, native fullscreen, seamless responsive, fast CSS3 transitions, lazy loading, neat and transparent.',
    'git' => 'https://github.com/artpolikarpov/fotorama',
  ),
)