src/Tolkien/CompileSite.php
public function compileCategories()
	{
		foreach ($this->site->getCategories() as $category) 
		{
			$template = $this->twig->loadTemplate( 'category.html.tpl' );
			$content = $template->render(array('site' => $this->site, 'category' => $category));
			$this->createFile($content, $category);
		}
	}
public function compileCategories()
	{
		foreach ($this->site->getCategories() as $category) 
		{
			$template = $this->twig->loadTemplate( 'category.html.tpl' );
			$content = $template->render(array('site' => $this->site, 'category' => $category));
			$this->createFile($content, $category);
		}
	}
public function compileCategories ( ) { foreach ( $ this -> site -> getCategories ( ) as $ category ) { $ template = $ this -> twig -> loadTemplate ( 'category.html.tpl' ) ; $ content = $ template -> render ( array ( 'site' => $ this -> site , 'category' => $ category ) ) ; $ this -> createFile ( $ content , $ category ) ; } }
Compile Site Categories

@return void
Compile Site Categories