- the <%namespacename:defname> syntax described at
http://techspot.zzzeek.org/?p=28 has now been added as a built in syntax, and is recommended as a more modern syntax versus <%call expr="expression">. The %call tag itself will always remain, with <%namespacename:defname> presenting a more HTML-like alternative to calling defs, both plain and nested. Many examples of the new syntax are in the "Calling a def with embedded content" section of the docs.
Showing
- CHANGES 16 additions, 3 deletionsCHANGES
- doc/build/content/defs.txt 67 additions, 41 deletionsdoc/build/content/defs.txt
- doc/build/content/namespaces.txt 38 additions, 5 deletionsdoc/build/content/namespaces.txt
- doc/build/content/syntax.txt 11 additions, 1 deletiondoc/build/content/syntax.txt
- lib/mako/codegen.py 11 additions, 2 deletionslib/mako/codegen.py
- lib/mako/ext/pygmentplugin.py 3 additions, 3 deletionslib/mako/ext/pygmentplugin.py
- lib/mako/lexer.py 1 addition, 1 deletionlib/mako/lexer.py
- lib/mako/parsetree.py 157 additions, 29 deletionslib/mako/parsetree.py
- test/lexer.py 19 additions, 1 deletiontest/lexer.py
- test/namespace.py 75 additions, 0 deletionstest/namespace.py
Loading
Please register or sign in to comment