Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Renamed Zepto\Zepto->container['file_loader'] to content_loader
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Feb 3, 2014
1 parent 0033a8f commit a676222
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions library/Zepto/Zepto.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function() {
}
);

$container['file_loader'] = $container->share(
$container['content_loader'] = $container->share(
function() {
return new FileLoader\MarkdownLoader(new \Michelf\MarkdownExtra);
}
Expand Down Expand Up @@ -219,19 +219,19 @@ protected function load_content()
{
// Get local reference to file loader
$container = $this->container;
$file_loader = $container['file_loader'];
$content_loader = $container['content_loader'];
$settings = $container['settings']['zepto'];

$content_dir = $settings['content_dir'];
$this->run_hooks('before_content_load', array(&$content_dir));

$content = $file_loader->load(
$content = $content_loader->load(
$content_dir,
$settings['content_ext']
);

// Could add a hook here maybe?
$container['folder_structure'] = $file_loader->get_directory_map($content_dir);
$container['folder_structure'] = $content_loader->get_directory_map($content_dir);

$this->run_hooks('after_content_load', array(&$content));
$container['content'] = $content;
Expand Down Expand Up @@ -316,13 +316,13 @@ protected function generate_nav_html()
{
$container = $this->container;
$settings = $container['settings'];
$file_loader = $container['file_loader'];
$content_loader = $container['content_loader'];

// Opening ``<ul>`` tag and adding class name
$nav_html = sprintf('<ul class="%s">' . PHP_EOL, $settings['site']['nav']['class']);

// Could add a hook here maybe?
$structure = $file_loader->get_directory_map($settings['zepto']['content_dir']);
$structure = $content_loader->get_directory_map($settings['zepto']['content_dir']);

// Remove 'index' along with any file extensions from URL
$filth = array_merge(array('index'), $settings['zepto']['content_ext']);
Expand Down

0 comments on commit a676222

Please sign in to comment.