Skip to content

Instantly share code, notes, and snippets.

@vti
Created October 12, 2010 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vti/ba8394e17094bbc0a05d to your computer and use it in GitHub Desktop.
Save vti/ba8394e17094bbc0a05d to your computer and use it in GitHub Desktop.
diff --git a/lib/MojoX/Renderer.pm b/lib/MojoX/Renderer.pm
index 54bd7e8..a4ac734 100644
--- a/lib/MojoX/Renderer.pm
+++ b/lib/MojoX/Renderer.pm
@@ -177,6 +177,8 @@ sub render {
# Extends
while ((my $extends = $self->_extends($c)) && !$json && !$data) {
+ $options->{template_class} = $c->stash('template_class');
+
# Handler
$handler = $c->stash->{handler};
$options->{handler} = $handler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment