1. Michael Bayer
  2. mako
  3. Issues

Issues

Issue #169 resolved

block tag didnt make it into the babel extension

Michael Bayer
repo owner created an issue

probable patch:

  1. !diff --- 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

Comments (2)

  1. Log in to comment