src/cultusrego.php
public function render() {
    // Initialize Markdown and Twig
    $engine = new MarkdownEngine\MichelfMarkdownEngine();
    $twig_loader = new Twig_Loader_Filesystem($this->template_folder);
    $twig = new Twig_Environment($twig_loader, array(
      'cache' => $this->twig_cache,
    ));
    $twig->addExtension(new MarkdownExtension($engine));

    print $twig->render('index.html', array(
      'title' => $this->title,
      'description' => $this->description,
      'source' => $this->source,
      'sections' => $this->sections,
      'base_path' => $this->base_path,
      'asset_path' => $this->asset_path,
    ));
  }
public function render() {
    // Initialize Markdown and Twig
    $engine = new MarkdownEngine\MichelfMarkdownEngine();
    $twig_loader = new Twig_Loader_Filesystem($this->template_folder);
    $twig = new Twig_Environment($twig_loader, array(
      'cache' => $this->twig_cache,
    ));
    $twig->addExtension(new MarkdownExtension($engine));

    print $twig->render('index.html', array(
      'title' => $this->title,
      'description' => $this->description,
      'source' => $this->source,
      'sections' => $this->sections,
      'base_path' => $this->base_path,
      'asset_path' => $this->asset_path,
    ));
  }
public function render ( ) { // Initialize Markdown and Twig $ engine = new MarkdownEngine \ MichelfMarkdownEngine ( ) ; $ twig_loader = new Twig_Loader_Filesystem ( $ this -> template_folder ) ; $ twig = new Twig_Environment ( $ twig_loader , array ( 'cache' => $ this -> twig_cache , ) ) ; $ twig -> addExtension ( new MarkdownExtension ( $ engine ) ) ; print $ twig -> render ( 'index.html' , array ( 'title' => $ this -> title , 'description' => $ this -> description , 'source' => $ this -> source , 'sections' => $ this -> sections , 'base_path' => $ this -> base_path , 'asset_path' => $ this -> asset_path , ) ) ; }
Loads Markdown and Twig engines and renders the styleguide
@return rendered HTML
Loads Markdown and Twig engines and renders the styleguide