Closed magabriel closed 11 years ago
:+1: Please merge this. I just spent a an hour reading through the docs, trying to figure out why easybook wasn't pulling in my custom template.
@magabriel thanks as always for your pull request and for your error fix.
Using namespaces when rendering templates other than the easybook standard css file
@theme/style.css.twig
was precluding the usage of customized templates per book or edition.This PR removes namespaces from each call to
render()
inEpub2Publisher
class except the one that generates the easybook css file@theme/style.css.twig
, which is the only one that doesn't make sense to be overriden by the user. This lets the namespaces functionality of twig take care of choosing the right template.Note to self: when PR https://github.com/javiereguiluz/easybook/pull/85 gets merged, a similar fix will need to be implemented for the new code.