src/models/NamespaceMd.php
public function write(){

        $m = new \Mustache_Engine([
            'loader' => new \Mustache_Loader_FilesystemLoader( __DIR__.'/../views')
        ]);
        $template = $m->loadTemplate('Page');

        $generatedMd = $template->render( $this);

        $this->writeSubPages();

        /// Write page
        @mkdir( $this->page_rd, 0777, true);
        file_put_contents( $this->page_rd . DIRECTORY_SEPARATOR . $this->page_bfe, $generatedMd);
    }
public function write(){

        $m = new \Mustache_Engine([
            'loader' => new \Mustache_Loader_FilesystemLoader( __DIR__.'/../views')
        ]);
        $template = $m->loadTemplate('Page');

        $generatedMd = $template->render( $this);

        $this->writeSubPages();

        /// Write page
        @mkdir( $this->page_rd, 0777, true);
        file_put_contents( $this->page_rd . DIRECTORY_SEPARATOR . $this->page_bfe, $generatedMd);
    }
public function write ( ) { $ m = new \ Mustache_Engine ( [ 'loader' => new \ Mustache_Loader_FilesystemLoader ( __DIR__ . '/../views' ) ] ) ; $ template = $ m -> loadTemplate ( 'Page' ) ; $ generatedMd = $ template -> render ( $ this ) ; $ this -> writeSubPages ( ) ; /// Write page @ mkdir ( $ this -> page_rd , 0777 , true ) ; file_put_contents ( $ this -> page_rd . DIRECTORY_SEPARATOR . $ this -> page_bfe , $ generatedMd ) ; }
Write markdown file
Write markdown file