Skip to content

Commit

Permalink
Merge pull request #2 from pjenvey/master
Browse files Browse the repository at this point in the history
simplify
  • Loading branch information
zzzeek committed Aug 3, 2013
2 parents 420a083 + 0a18de6 commit 82d4954
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions mako/ext/babelplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,7 @@ def extract_nodes(nodes, keywords, comment_tags, options):
elif isinstance(node, parsetree.PageTag):
code = node.body_decl.code
elif isinstance(node, parsetree.CallNamespaceTag):
attribs = ', '.join(['%s=%s' % (
key,
repr(val)
if not val.startswith('${')
else val
)
for key, val in node.attributes.items()])

code = '{%s}' % attribs
code = node.expression
child_nodes = node.nodes
elif isinstance(node, parsetree.ControlLine):
if node.isend:
Expand Down

0 comments on commit 82d4954

Please sign in to comment.