Skip to content

Commit

Permalink
Epub: do not use twig namespaces when rendering templates
Browse files Browse the repository at this point in the history
as this precludes the usage of customized templates per ebook
  • Loading branch information
magabriel committed Oct 29, 2012
1 parent 4995bac commit e22a608
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Easybook/Publishers/Epub2Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function assembleBook()
// generate one HTML page for every book item
$items = array();
foreach ($this->app['publishing.items'] as $item) {
$this->app->render('@theme/chunk.twig', array(
$this->app->render('chunk.twig', array(
'item' => $item,
'has_custom_css' => file_exists($customCss),
),
Expand Down Expand Up @@ -170,14 +170,14 @@ public function assembleBook()
}

// generate book cover
$this->app->render('@theme/cover.twig', array(
$this->app->render('cover.twig', array(
'cover' => $cover
),
$bookTempDir.'/book/OEBPS/titlepage.html'
);

// generate OPF file
$this->app->render('@theme/content.opf.twig', array(
$this->app->render('content.opf.twig', array(
'cover' => $cover,
'has_custom_css' => file_exists($customCss),
'fonts' => $bookFonts,
Expand All @@ -187,15 +187,15 @@ public function assembleBook()
);

// generate NCX file
$this->app->render('@theme/toc.ncx.twig', array(),
$this->app->render('toc.ncx.twig', array(),
$bookTempDir.'/book/OEBPS/toc.ncx'
);

// generate container.xml and mimetype files
$this->app->render('@theme/container.xml.twig', array(),
$this->app->render('container.xml.twig', array(),
$bookTempDir.'/book/META-INF/container.xml'
);
$this->app->render('@theme/mimetype.twig', array(),
$this->app->render('mimetype.twig', array(),
$bookTempDir.'/book/mimetype'
);

Expand Down

0 comments on commit e22a608

Please sign in to comment.