-
-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Description
Migrated issue, originally created by Michael Bayer (@zzzeek)
probable patch:
--- a/mako/ext/babelplugin.py Wed Apr 06 19:01:23 2011 -0400
+++ b/mako/ext/babelplugin.py Fri Jul 08 10:07:17 2011 -0400
@@ -68,6 +68,9 @@
if isinstance(node, parsetree.DefTag):
code = node.function_decl.code
child_nodes = node.nodes
+ elif isinstance(node, parsetree.BlockTag):
+ code = node.body_decl.code
+ child_nodes = node.nodes
elif isinstance(node, parsetree.CallTag):
code = node.code.code
child_nodes = node.nodes