~ubuntu-branches/ubuntu/utopic/mako/utopic-proposed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<head>
<title>
    
                Changelog
             &mdash;
    Mako 1.0.0 Documentation
</title>

<!-- begin iterate through sphinx environment css_files -->
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/docs.css" type="text/css" />
    <link rel="stylesheet" href="_static/site.css" type="text/css" />
    <link rel="stylesheet" href="_static/changelog.css" type="text/css" />
    <link rel="stylesheet" href="_static/sphinx_paramlinks.css" type="text/css" />
<!-- end iterate through sphinx environment css_files -->


    


    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    './',
          VERSION:     '1.0.0',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
        <script type="text/javascript" src="_static/jquery.js"></script>
        <script type="text/javascript" src="_static/underscore.js"></script>
        <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="Mako 1.0.0 Documentation" href="index.html" />
        <link rel="prev" title="Caching" href="caching.html" />



</head>
<body>
    <div id="wrap">
    <div class="rightbar">


    <div class="slogan">
    Hyperfast and lightweight templating for the Python platform.
    </div>


    </div>

    <a href="http://www.makotemplates.org/"><img src="_static/makoLogo.png" /></a>

    <hr/>

    










<div id="docs-container">



<div id="docs-header">
    <h1>Mako 1.0.0 Documentation</h1>

    <div id="docs-search">
    Search:
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>

    <div id="docs-version-header">
        Release: <span class="version-num">1.0.0</span>

    </div>

</div>

<div id="docs-top-navigation">
    <div id="docs-top-page-control" class="docs-navigation-links">
        <ul>
            <li>Prev:
            <a href="caching.html" title="previous chapter">Caching</a>
            </li>

        <li>
            <a href="index.html">Table of Contents</a> |
            <a href="genindex.html">Index</a>
            | <a href="_sources/changelog.txt">view source
        </li>
        </ul>
    </div>

    <div id="docs-navigation-banner">
        <a href="index.html">Mako 1.0.0 Documentation</a>
        » 
                Changelog
            

        <h2>
            
                Changelog
            
        </h2>
    </div>

</div>

<div id="docs-body-container">

    <div id="docs-sidebar">
    <h3><a href="index.html">Table of Contents</a></h3>
    <ul>
<li><a class="reference internal" href="#">Changelog</a><ul>
<li><a class="reference internal" href="#id1">1.0</a><ul>
<li><a class="reference internal" href="#change-1.0.0">1.0.0</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id2">0.9</a><ul>
<li><a class="reference internal" href="#change-0.9.1">0.9.1</a></li>
<li><a class="reference internal" href="#change-0.9.0">0.9.0</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id3">0.8</a><ul>
<li><a class="reference internal" href="#change-0.8.1">0.8.1</a></li>
<li><a class="reference internal" href="#change-0.8.0">0.8.0</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id4">0.7</a><ul>
<li><a class="reference internal" href="#change-0.7.3">0.7.3</a></li>
<li><a class="reference internal" href="#change-0.7.2">0.7.2</a></li>
<li><a class="reference internal" href="#change-0.7.1">0.7.1</a></li>
<li><a class="reference internal" href="#change-0.7.0">0.7.0</a></li>
</ul>
</li>
<li><a class="reference internal" href="#older-versions">Older Versions</a><ul>
<li><a class="reference internal" href="#change-0.6.2">0.6.2</a></li>
<li><a class="reference internal" href="#change-0.6.1">0.6.1</a></li>
<li><a class="reference internal" href="#change-0.6.0">0.6.0</a></li>
<li><a class="reference internal" href="#change-0.5.0">0.5.0</a></li>
<li><a class="reference internal" href="#change-0.4.2">0.4.2</a></li>
<li><a class="reference internal" href="#change-0.4.1">0.4.1</a></li>
<li><a class="reference internal" href="#change-0.4.0">0.4.0</a></li>
<li><a class="reference internal" href="#change-0.3.6">0.3.6</a></li>
<li><a class="reference internal" href="#change-0.3.5">0.3.5</a></li>
<li><a class="reference internal" href="#change-0.3.4">0.3.4</a></li>
<li><a class="reference internal" href="#change-0.3.3">0.3.3</a></li>
<li><a class="reference internal" href="#change-0.3.2">0.3.2</a></li>
<li><a class="reference internal" href="#change-0.3.1">0.3.1</a></li>
<li><a class="reference internal" href="#change-0.3.0">0.3.0</a></li>
<li><a class="reference internal" href="#change-0.2.6">0.2.6</a></li>
<li><a class="reference internal" href="#change-0.2.5">0.2.5</a></li>
<li><a class="reference internal" href="#change-0.2.4">0.2.4</a></li>
<li><a class="reference internal" href="#change-0.2.3">0.2.3</a></li>
<li><a class="reference internal" href="#change-0.2.2">0.2.2</a></li>
<li><a class="reference internal" href="#change-0.2.1">0.2.1</a></li>
<li><a class="reference internal" href="#change-0.2.0">0.2.0</a></li>
<li><a class="reference internal" href="#change-0.1.10">0.1.10</a></li>
<li><a class="reference internal" href="#change-0.1.9">0.1.9</a></li>
<li><a class="reference internal" href="#change-0.1.8">0.1.8</a></li>
<li><a class="reference internal" href="#change-0.1.7">0.1.7</a></li>
<li><a class="reference internal" href="#change-0.1.6">0.1.6</a></li>
<li><a class="reference internal" href="#change-0.1.5">0.1.5</a></li>
<li><a class="reference internal" href="#change-0.1.4">0.1.4</a></li>
<li><a class="reference internal" href="#change-0.1.3">0.1.3</a></li>
<li><a class="reference internal" href="#change-0.1.2">0.1.2</a></li>
<li><a class="reference internal" href="#change-0.1.1">0.1.1</a></li>
</ul>
</li>
</ul>
</li>
</ul>


    <h4>Previous Topic</h4>
    <p>
    <a href="caching.html" title="previous chapter">Caching</a>
    </p>

    <h4>Quick Search</h4>
    <p>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" size="18" /> <input type="submit" value="Search" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </p>

    </div>

    <div id="docs-body" class="withsidebar" >
        
<div class="section" id="changelog">
<h1>Changelog<a class="headerlink" href="#changelog" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2>1.0<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="section" id="change-1.0.0">
<h3>1.0.0<a class="headerlink" href="#change-1.0.0" title="Permalink to this headline"></a></h3>
Released: Sun Jun 8 2014<ul class="simple">
<li><p id="change-1.0.0-0"><span class="target" id="change-a1b32dcfac59fb3d94194cc23d05eec4"><strong>[py2k] [bug] </strong></span>Improved the error re-raise operation when a custom
<a class="reference internal" href="usage.html#mako.template.Template.params.error_handler" title="mako.template.Template"><tt class="xref py py-paramref docutils literal"><span class="pre">Template.error_handler</span></tt></a> is used that does not handle
the exception; the original stack trace etc. is now preserved.
Pull request courtesy Manfred Haltner.<a class="changeset-link headerlink reference internal" href="#change-a1b32dcfac59fb3d94194cc23d05eec4"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/pull-request/8">pull request bitbucket:8</a></p>
</p>
</li>
<li><p id="change-1.0.0-1"><span class="target" id="change-7f76f6ca5487a165840d3f1634e26b5f"><strong>[py2k] [bug] [filters] </strong></span>Added an html_escape filter that works in &#8220;non unicode&#8221; mode.
Previously, when using <tt class="docutils literal"><span class="pre">disable_unicode=True</span></tt>, the <tt class="docutils literal"><span class="pre">u</span></tt> filter
would fail to handle non-ASCII bytes properly.  Pull request
courtesy George Xie.<a class="changeset-link headerlink reference internal" href="#change-7f76f6ca5487a165840d3f1634e26b5f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/pull-request/7">pull request bitbucket:7</a></p>
</p>
</li>
<li><p id="change-1.0.0-2"><span class="target" id="change-b602a175c0ec26eaa4f42962d23cca96"><strong>[general] </strong></span>Compatibility changes; in order to modernize the codebase, Mako
is now dropping support for Python 2.4 and Python 2.5 altogether.
The source base is now targeted at Python 2.6 and forwards.<a class="changeset-link headerlink reference internal" href="#change-b602a175c0ec26eaa4f42962d23cca96"></a><p></p>
</p>
</li>
<li><p id="change-1.0.0-3"><span class="target" id="change-ac6c8e7df6c612e92bf81577c4c96276"><strong>[feature] </strong></span>Template modules now generate a JSON &#8220;metadata&#8221; structure at the bottom
of the source file which includes parseable information about the
templates&#8217; source file, encoding etc. as well as a mapping of module
source lines to template lines, thus replacing the &#8220;# SOURCE LINE&#8221;
markers throughout the source code.  The structure also indicates those
lines that are explicitly not part of the template&#8217;s source; the goal
here is to allow better integration with coverage and other tools.<a class="changeset-link headerlink reference internal" href="#change-ac6c8e7df6c612e92bf81577c4c96276"></a><p></p>
</p>
</li>
<li><p id="change-1.0.0-4"><span class="target" id="change-48f95a70e6b509811d3c6c208b3bbafc"><strong>[bug] [py3k] </strong></span>Fixed bug in <tt class="docutils literal"><span class="pre">decode.&lt;encoding&gt;</span></tt> filter where a non-string object
would not be correctly interpreted in Python 3.<a class="changeset-link headerlink reference internal" href="#change-48f95a70e6b509811d3c6c208b3bbafc"></a><p></p>
</p>
</li>
<li><p id="change-1.0.0-5"><span class="target" id="change-7638baccf1cc95230c98f9475713aff4"><strong>[bug] [py3k] </strong></span>Fixed bug in Python parsing logic which would fail on Python 3
when a &#8220;try/except&#8221; targeted a tuple of exception types, rather
than a single exception.<a class="changeset-link headerlink reference internal" href="#change-7638baccf1cc95230c98f9475713aff4"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/227/">#227</a></p>
</p>
</li>
<li><p id="change-1.0.0-6"><span class="target" id="change-4ed767c704faafcfcaa96c993b6c3ce8"><strong>[feature] </strong></span>mako-render is now implemented as a setuptools entrypoint script;
a standalone mako.cmd.cmdline() callable is now available, and the
system also uses argparse now instead of optparse.  Pull request
courtesy Derek Harland.<a class="changeset-link headerlink reference internal" href="#change-4ed767c704faafcfcaa96c993b6c3ce8"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/pull-request/5">pull request bitbucket:5</a></p>
</p>
</li>
<li><p id="change-1.0.0-7"><span class="target" id="change-b514d619be9c65cb0abb149be8b3a1a2"><strong>[feature] </strong></span>The mako-render script will now catch exceptions and run them
into the text error handler, and exit with a non-zero exit code.
Pull request courtesy Derek Harland.<a class="changeset-link headerlink reference internal" href="#change-b514d619be9c65cb0abb149be8b3a1a2"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/pull-request/4">pull request bitbucket:4</a></p>
</p>
</li>
<li><p id="change-1.0.0-8"><span class="target" id="change-a328a21ec5123a69caf9021bbf70b90a"><strong>[bug] </strong></span>A rework of the mako-render script allows the script to run
correctly when given a file pathname that is outside of the current
directory, e.g. <tt class="docutils literal"><span class="pre">mako-render</span> <span class="pre">../some_template.mako</span></tt>.  In this case,
the &#8220;template root&#8221; defaults to the directory in which the template
is located, instead of &#8221;.&#8221;.  The script also accepts a new argument
<tt class="docutils literal"><span class="pre">--template-dir</span></tt> which can be specified multiple times to establish
template lookup directories.  Standard input for templates also works
now too.  Pull request courtesy Derek Harland.<a class="changeset-link headerlink reference internal" href="#change-a328a21ec5123a69caf9021bbf70b90a"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/pull-request/2">pull request bitbucket:2</a></p>
</p>
</li>
<li><p id="change-1.0.0-9"><span class="target" id="change-e39fabd3e579af9dd730204a7692c76f"><strong>[feature] [py3k] </strong></span>Support is added for Python 3 &#8220;keyword only&#8221; arguments, as used in
defs.  Pull request courtesy Eevee.<a class="changeset-link headerlink reference internal" href="#change-e39fabd3e579af9dd730204a7692c76f"></a><p>References: <a class="reference external" href="https://github.com/zzzeek/mako/pull/7">pull request github:7</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="id2">
<h2>0.9<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<div class="section" id="change-0.9.1">
<h3>0.9.1<a class="headerlink" href="#change-0.9.1" title="Permalink to this headline"></a></h3>
Released: Thu Dec 26 2013<ul class="simple">
<li><p id="change-0.9.1-0"><span class="target" id="change-8b4011d90ed7ddc770e03ef8ade6e6dc"><strong>[bug] </strong></span>Fixed bug in Babel plugin where translator comments
would be lost if intervening text nodes were encountered.
Fix courtesy Ned Batchelder.<a class="changeset-link headerlink reference internal" href="#change-8b4011d90ed7ddc770e03ef8ade6e6dc"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/225/">#225</a></p>
</p>
</li>
<li><p id="change-0.9.1-1"><span class="target" id="change-a7b4b7fb4a7bf5e4c0ca7c2a7b072eca"><strong>[bug] </strong></span>Fixed TGPlugin.render method to support unicode template
names in Py2K - courtesy Vladimir Magamedov.<a class="changeset-link headerlink reference internal" href="#change-a7b4b7fb4a7bf5e4c0ca7c2a7b072eca"></a><p></p>
</p>
</li>
<li><p id="change-0.9.1-2"><span class="target" id="change-c3dd59728d365b33fe9fcbf8ea96f9ab"><strong>[bug] </strong></span>Fixed an AST issue that was preventing correct operation
under alpha versions of Python 3.4.  Pullreq courtesy Zer0-.<a class="changeset-link headerlink reference internal" href="#change-c3dd59728d365b33fe9fcbf8ea96f9ab"></a><p></p>
</p>
</li>
<li><p id="change-0.9.1-3"><span class="target" id="change-166e48714e8db96013d1a6038e54aff4"><strong>[bug] </strong></span>Changed the format of the &#8220;source encoding&#8221; header output
by the code generator to use the format <tt class="docutils literal"><span class="pre">#</span> <span class="pre">-*-</span> <span class="pre">coding:%s</span> <span class="pre">-*-</span></tt>
instead of <tt class="docutils literal"><span class="pre">#</span> <span class="pre">-*-</span> <span class="pre">encoding:%s</span> <span class="pre">-*-</span></tt>; the former is more common
and compatible with emacs.  Courtesy Martin Geisler.<a class="changeset-link headerlink reference internal" href="#change-166e48714e8db96013d1a6038e54aff4"></a><p></p>
</p>
</li>
<li><p id="change-0.9.1-4"><span class="target" id="change-9a88fa8f596546fb451bfcbfa7ce6274"><strong>[bug] </strong></span>Fixed issue where an old lexer rule prevented a template line
which looked like &#8220;#*&#8221; from being correctly parsed.<a class="changeset-link headerlink reference internal" href="#change-9a88fa8f596546fb451bfcbfa7ce6274"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/224/">#224</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.9.0">
<h3>0.9.0<a class="headerlink" href="#change-0.9.0" title="Permalink to this headline"></a></h3>
Released: Tue Aug 27 2013<ul class="simple">
<li><p id="change-0.9.0-0"><span class="target" id="change-f529d0d5bf50c9e01e436ee12672a7f8"><strong>[bug] </strong></span>The Context.locals_() method becomes a private underscored
method, as this method has a specific internal use. The purpose
of Context.kwargs has been clarified, in that it only delivers
top level keyword arguments originally passed to template.render().<a class="changeset-link headerlink reference internal" href="#change-f529d0d5bf50c9e01e436ee12672a7f8"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/219/">#219</a></p>
</p>
</li>
<li><p id="change-0.9.0-1"><span class="target" id="change-41a0ced688ee0a615dcddf766d267241"><strong>[bug] </strong></span>Fixed the babel plugin to properly interpret ${} sections
inside of a &#8220;call&#8221; tag, i.e. &lt;%self:some_tag attr=&#8221;${_(&#8216;foo&#8217;)}&#8221;/&gt;.
Code that&#8217;s subject to babel escapes in here needs to be
specified as a Python expression, not a literal.  This change
is backwards incompatible vs. code that is relying upon a _(&#8216;&#8217;)
translation to be working within a call tag.<a class="changeset-link headerlink reference internal" href="#change-41a0ced688ee0a615dcddf766d267241"></a><p></p>
</p>
</li>
<li><p id="change-0.9.0-2"><span class="target" id="change-ac972a0d002a412c4a92175229d7444f"><strong>[bug] </strong></span>The Babel plugin has been repaired to work on Python 3.<a class="changeset-link headerlink reference internal" href="#change-ac972a0d002a412c4a92175229d7444f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/187/">#187</a></p>
</p>
</li>
<li><p id="change-0.9.0-3"><span class="target" id="change-dbf6f29e5e76133b9dd779baacb24818"><strong>[bug] </strong></span>Using &lt;%namespace import=&#8221;*&#8221; module=&#8221;somemodule&#8221;/&gt; now
skips over module elements that are not explcitly callable,
avoiding TypeError when trying to produce partials.<a class="changeset-link headerlink reference internal" href="#change-dbf6f29e5e76133b9dd779baacb24818"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/207/">#207</a></p>
</p>
</li>
<li><p id="change-0.9.0-4"><span class="target" id="change-693045b580eddfdc7e464ba0426b3495"><strong>[bug] </strong></span>Fixed Py3K bug where a &#8220;lambda&#8221; expression was not
interpreted correctly within a template tag; also
fixed in Py2.4.<a class="changeset-link headerlink reference internal" href="#change-693045b580eddfdc7e464ba0426b3495"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/190/">#190</a></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="id3">
<h2>0.8<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<div class="section" id="change-0.8.1">
<h3>0.8.1<a class="headerlink" href="#change-0.8.1" title="Permalink to this headline"></a></h3>
Released: Fri May 24 2013<ul class="simple">
<li><p id="change-0.8.1-0"><span class="target" id="change-bd4b9d8ffbf32fc1b15161268eefa4d3"><strong>[bug] </strong></span>Changed setup.py to skip installing markupsafe
if Python version is &lt; 2.6 or is between 3.0 and
less than 3.3, as Markupsafe now only supports 2.6-&gt;2.X,
3.3-&gt;3.X.<a class="changeset-link headerlink reference internal" href="#change-bd4b9d8ffbf32fc1b15161268eefa4d3"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/216/">#216</a></p>
</p>
</li>
<li><p id="change-0.8.1-1"><span class="target" id="change-422ca71aa24f94eb264fc0d653dc726e"><strong>[bug] </strong></span>Fixed regression where &#8220;entity&#8221; filter wasn&#8217;t
converted for py3k properly (added tests.)<a class="changeset-link headerlink reference internal" href="#change-422ca71aa24f94eb264fc0d653dc726e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/214/">#214</a></p>
</p>
</li>
<li><p id="change-0.8.1-2"><span class="target" id="change-32c8f2eaa85fc02c7f1908ade43391a6"><strong>[bug] </strong></span>Fixed bug where mako-render script wasn&#8217;t
compatible with Py3k.<a class="changeset-link headerlink reference internal" href="#change-32c8f2eaa85fc02c7f1908ade43391a6"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/212/">#212</a></p>
</p>
</li>
<li><p id="change-0.8.1-3"><span class="target" id="change-3493666706cc97f02aa1454a0bfa8b05"><strong>[bug] </strong></span>Cleaned up all the various deprecation/
file warnings when running the tests under
various Pythons with warnings turned on.<a class="changeset-link headerlink reference internal" href="#change-3493666706cc97f02aa1454a0bfa8b05"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/213/">#213</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.8.0">
<h3>0.8.0<a class="headerlink" href="#change-0.8.0" title="Permalink to this headline"></a></h3>
Released: Wed Apr 10 2013<ul class="simple">
<li><p id="change-0.8.0-0"><span class="target" id="change-6b0ea675bf69869d3082ead0019268ac"><strong>[feature] </strong></span>Performance improvement to the
&#8220;legacy&#8221; HTML escape feature, used for XML
escaping and when markupsafe isn&#8217;t present,
courtesy George Xie.<a class="changeset-link headerlink reference internal" href="#change-6b0ea675bf69869d3082ead0019268ac"></a><p></p>
</p>
</li>
<li><p id="change-0.8.0-1"><span class="target" id="change-9a75951207d1a79183ecde188ec6dc0f"><strong>[bug] </strong></span>Fixed bug whereby an exception in Python 3
against a module compiled to the filesystem would
fail trying to produce a RichTraceback due to the
content being in bytes.<a class="changeset-link headerlink reference internal" href="#change-9a75951207d1a79183ecde188ec6dc0f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/209/">#209</a></p>
</p>
</li>
<li><p id="change-0.8.0-2"><span class="target" id="change-c3d6a16577c7159388068ce214713af5"><strong>[bug] </strong></span>Change default for compile()-&gt;reserved_names
from tuple to frozenset, as this is expected to be
a set by default.<a class="changeset-link headerlink reference internal" href="#change-c3d6a16577c7159388068ce214713af5"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/208/">#208</a></p>
</p>
</li>
<li><p id="change-0.8.0-3"><span class="target" id="change-eaf9d70768b7b2e3bf37574dc5776ddb"><strong>[feature] </strong></span>Code has been reworked to support Python 2.4-&gt;
Python 3.xx in place.  2to3 no longer needed.<a class="changeset-link headerlink reference internal" href="#change-eaf9d70768b7b2e3bf37574dc5776ddb"></a><p></p>
</p>
</li>
<li><p id="change-0.8.0-4"><span class="target" id="change-26eea0f7e4b73fcb7f112ad6fff7181d"><strong>[feature] </strong></span>Added lexer_cls argument to Template,
TemplateLookup, allows alternate Lexer classes
to be used.<a class="changeset-link headerlink reference internal" href="#change-26eea0f7e4b73fcb7f112ad6fff7181d"></a><p></p>
</p>
</li>
<li><p id="change-0.8.0-5"><span class="target" id="change-b7ef07a547af42dd2677a0ee710a88d8"><strong>[feature] </strong></span>Added future_imports parameter to Template
and TemplateLookup, renders the __future__ header
with desired capabilities at the top of the generated
template module.  Courtesy Ben Trofatter.<a class="changeset-link headerlink reference internal" href="#change-b7ef07a547af42dd2677a0ee710a88d8"></a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="id4">
<h2>0.7<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<div class="section" id="change-0.7.3">
<h3>0.7.3<a class="headerlink" href="#change-0.7.3" title="Permalink to this headline"></a></h3>
Released: Wed Nov 7 2012<ul class="simple">
<li><p id="change-0.7.3-0"><span class="target" id="change-5b7ac5083658b50ef3156f602a6fbc7f"><strong>[bug] </strong></span>legacy_html_escape function, used when
Markupsafe isn&#8217;t installed, was using an inline-compiled
regexp which causes major slowdowns on Python 3.3;
is now precompiled.<a class="changeset-link headerlink reference internal" href="#change-5b7ac5083658b50ef3156f602a6fbc7f"></a><p></p>
</p>
</li>
<li><p id="change-0.7.3-1"><span class="target" id="change-591582542cc9469802a12b959ae762fa"><strong>[bug] </strong></span>AST supporting now supports tuple-packed
function arguments inside pure-python def
or lambda expressions.<a class="changeset-link headerlink reference internal" href="#change-591582542cc9469802a12b959ae762fa"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/201/">#201</a></p>
</p>
</li>
<li><p id="change-0.7.3-2"><span class="target" id="change-3b3a50e075d4d15358ec199aa7c10fa0"><strong>[bug] </strong></span>Fixed Py3K bug in the Babel extension.<a class="changeset-link headerlink reference internal" href="#change-3b3a50e075d4d15358ec199aa7c10fa0"></a><p></p>
</p>
</li>
<li><p id="change-0.7.3-3"><span class="target" id="change-535675bd3ae6ed887cfebf09a83d4311"><strong>[bug] </strong></span>Fixed the &#8220;filter&#8221; attribute of the
&lt;%text&gt; tag so that it pulls locally specified
identifiers from the context the same
way as that of &lt;%block&gt; and &lt;%filter&gt;.<a class="changeset-link headerlink reference internal" href="#change-535675bd3ae6ed887cfebf09a83d4311"></a><p></p>
</p>
</li>
<li><p id="change-0.7.3-4"><span class="target" id="change-618340e118c47998e9a6a21d3dfeab3c"><strong>[bug] </strong></span>Fixed bug in plugin loader to correctly
raise exception when non-existent plugin
is specified.<a class="changeset-link headerlink reference internal" href="#change-618340e118c47998e9a6a21d3dfeab3c"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.7.2">
<h3>0.7.2<a class="headerlink" href="#change-0.7.2" title="Permalink to this headline"></a></h3>
Released: Fri Jul 20 2012<ul class="simple">
<li><p id="change-0.7.2-0"><span class="target" id="change-24885c510552de270fdab999df4d3ee3"><strong>[bug] </strong></span>Fixed regression in 0.7.1 where AST
parsing for Py2.4 was broken.<a class="changeset-link headerlink reference internal" href="#change-24885c510552de270fdab999df4d3ee3"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/193/">#193</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.7.1">
<h3>0.7.1<a class="headerlink" href="#change-0.7.1" title="Permalink to this headline"></a></h3>
Released: Sun Jul 8 2012<ul class="simple">
<li><p id="change-0.7.1-0"><span class="target" id="change-52ee3c2b0c1b4d4444ec4e93c7aafa2b"><strong>[feature] </strong></span>Control lines with no bodies will
now succeed, as &#8220;pass&#8221; is added for these
when no statements are otherwise present.
Courtesy Ben Trofatter<a class="changeset-link headerlink reference internal" href="#change-52ee3c2b0c1b4d4444ec4e93c7aafa2b"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/146/">#146</a></p>
</p>
</li>
<li><p id="change-0.7.1-1"><span class="target" id="change-149cdf4c14f9bacfe6dfa61ce8379d4e"><strong>[bug] </strong></span>Fixed some long-broken scoping behavior
involving variables declared in defs and such,
which only became apparent when
the strict_undefined flag was turned on.<a class="changeset-link headerlink reference internal" href="#change-149cdf4c14f9bacfe6dfa61ce8379d4e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/192/">#192</a></p>
</p>
</li>
<li><p id="change-0.7.1-2"><span class="target" id="change-28b06199f79ad5944ce27c6ca795912e"><strong>[bug] </strong></span>Can now use strict_undefined at the
same time args passed to def() are used
by other elements of the &lt;%def&gt; tag.<a class="changeset-link headerlink reference internal" href="#change-28b06199f79ad5944ce27c6ca795912e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/191/">#191</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.7.0">
<h3>0.7.0<a class="headerlink" href="#change-0.7.0" title="Permalink to this headline"></a></h3>
Released: Fri Mar 30 2012<ul class="simple">
<li><p id="change-0.7.0-0"><span class="target" id="change-99281e61032772527b9b88fa8420e86a"><strong>[feature] </strong></span>Added new &#8220;loop&#8221; variable to templates,
is provided within a % for block to provide
info about the loop such as index, first/last,
odd/even, etc.  A migration path is also provided
for legacy templates via the &#8220;enable_loop&#8221; argument
available on Template, TemplateLookup, and &lt;%page&gt;.
Thanks to Ben Trofatter for all
the work on this<a class="changeset-link headerlink reference internal" href="#change-99281e61032772527b9b88fa8420e86a"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/125/">#125</a></p>
</p>
</li>
<li><p id="change-0.7.0-1"><span class="target" id="change-7e9210f880731443d88f862a56ff6279"><strong>[feature] </strong></span>Added a real check for &#8220;reserved&#8221;
names, that is names which are never pulled
from the context and cannot be passed to
the template.render() method.  Current names
are &#8220;context&#8221;, &#8220;loop&#8221;, &#8220;UNDEFINED&#8221;.<a class="changeset-link headerlink reference internal" href="#change-7e9210f880731443d88f862a56ff6279"></a><p></p>
</p>
</li>
<li><p id="change-0.7.0-2"><span class="target" id="change-e3c973cf437f4220015f2d5107b90685"><strong>[feature] </strong></span>The html_error_template() will now
apply Pygments highlighting to the source
code displayed in the traceback, if Pygments
if available.  Courtesy Ben Trofatter<a class="changeset-link headerlink reference internal" href="#change-e3c973cf437f4220015f2d5107b90685"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/95/">#95</a></p>
</p>
</li>
<li><p id="change-0.7.0-3"><span class="target" id="change-3fe398b17c8a48c37534222a31cb6e95"><strong>[feature] </strong></span>Added support for context managers,
i.e. &#8220;% with x as e:/ % endwith&#8221; support.
Courtesy Ben Trofatter<a class="changeset-link headerlink reference internal" href="#change-3fe398b17c8a48c37534222a31cb6e95"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/147/">#147</a></p>
</p>
</li>
<li><p id="change-0.7.0-4"><span class="target" id="change-4071228d8de4b33e68b6655b7e55324b"><strong>[feature] </strong></span>Added class-level flag to CacheImpl
&#8220;pass_context&#8221;; when True, the keyword argument
&#8216;context&#8217; will be passed to get_or_create()
containing the Mako Context object.<a class="changeset-link headerlink reference internal" href="#change-4071228d8de4b33e68b6655b7e55324b"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/185/">#185</a></p>
</p>
</li>
<li><p id="change-0.7.0-5"><span class="target" id="change-9992c56ef372da93242c0408fde81739"><strong>[bug] </strong></span>Fixed some Py3K resource warnings due
to filehandles being implicitly closed.<a class="changeset-link headerlink reference internal" href="#change-9992c56ef372da93242c0408fde81739"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/182/">#182</a></p>
</p>
</li>
<li><p id="change-0.7.0-6"><span class="target" id="change-99f0e301249bf150b6a9aa25f7271be5"><strong>[bug] </strong></span>Fixed endless recursion bug when
nesting multiple def-calls with content.
Thanks to Jeff Dairiki.<a class="changeset-link headerlink reference internal" href="#change-99f0e301249bf150b6a9aa25f7271be5"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/186/">#186</a></p>
</p>
</li>
<li><p id="change-0.7.0-7"><span class="target" id="change-5a11b79be7c693f1faf8601f7f61ddfe"><strong>[feature] </strong></span>Added Jinja2 to the example
benchmark suite, courtesy Vincent Férotin<a class="changeset-link headerlink reference internal" href="#change-5a11b79be7c693f1faf8601f7f61ddfe"></a><p></p>
</p>
</li>
</ul>
</div>
</div>
<div class="section" id="older-versions">
<h2>Older Versions<a class="headerlink" href="#older-versions" title="Permalink to this headline"></a></h2>
<div class="section" id="change-0.6.2">
<h3>0.6.2<a class="headerlink" href="#change-0.6.2" title="Permalink to this headline"></a></h3>
Released: Thu Feb 2 2012<ul class="simple">
<li><p id="change-0.6.2-0"><span class="target" id="change-9b201e18db55b80dfdde3ccedde47930"><strong>[bug] </strong></span>The ${{&#8220;foo&#8221;:&#8221;bar&#8221;}} parsing issue is fixed!!
The legendary Eevee has slain the dragon!.  Also fixes quoting issue
at.<a class="changeset-link headerlink reference internal" href="#change-9b201e18db55b80dfdde3ccedde47930"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/86/">#86</a>, <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/20/">#20</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.1">
<h3>0.6.1<a class="headerlink" href="#change-0.6.1" title="Permalink to this headline"></a></h3>
Released: Sat Jan 28 2012<ul class="simple">
<li><p id="change-0.6.1-0"><span class="target" id="change-cfec33b6e59137a9512e1f1395305774"><strong>[bug] </strong></span>Added special compatibility for the 0.5.0
Cache() constructor, which was preventing file
version checks and not allowing Mako 0.6 to
recompile the module files.<a class="changeset-link headerlink reference internal" href="#change-cfec33b6e59137a9512e1f1395305774"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.6.0">
<h3>0.6.0<a class="headerlink" href="#change-0.6.0" title="Permalink to this headline"></a></h3>
Released: Sat Jan 21 2012<ul class="simple">
<li><p id="change-0.6.0-0"><span class="target" id="change-2b9d5caf9d33544a386cc21b37a81524"><strong>[feature] </strong></span>Template caching has been converted into a plugin
system, whereby the usage of Beaker is just the
default plugin.   Template and TemplateLookup
now accept a string &#8220;cache_impl&#8221; parameter which
refers to the name of a cache plugin, defaulting
to the name &#8216;beaker&#8217;.  New plugins can be
registered as pkg_resources entrypoints under
the group &#8220;mako.cache&#8221;, or registered directly
using mako.cache.register_plugin().  The
core plugin is the mako.cache.CacheImpl
class.<a class="changeset-link headerlink reference internal" href="#change-2b9d5caf9d33544a386cc21b37a81524"></a><p></p>
</p>
</li>
<li><p id="change-0.6.0-1"><span class="target" id="change-6296089f9cbb6d381f1307e8c87903b3"><strong>[feature] </strong></span>Added support for Beaker cache regions
in templates.   Usage of regions should be considered
as superseding the very obsolete idea of passing in
backend options, timeouts, etc. within templates.<a class="changeset-link headerlink reference internal" href="#change-6296089f9cbb6d381f1307e8c87903b3"></a><p></p>
</p>
</li>
<li><p id="change-0.6.0-2"><span class="target" id="change-0843fd024a1d50547e36cb04a4e8b78a"><strong>[feature] </strong></span>The &#8216;put&#8217; method on Cache is now
&#8216;set&#8217;.  &#8216;put&#8217; is there for backwards compatibility.<a class="changeset-link headerlink reference internal" href="#change-0843fd024a1d50547e36cb04a4e8b78a"></a><p></p>
</p>
</li>
<li><p id="change-0.6.0-3"><span class="target" id="change-4f115c692e6156a01ef13450ebbd33dc"><strong>[feature] </strong></span>The &lt;%def&gt;, &lt;%block&gt; and &lt;%page&gt; tags now accept
any argument named &#8220;cache_*&#8221;, and the key
minus the &#8220;<a href="#id11"><span class="problematic" id="id12">cache_</span></a>&#8221; prefix will be passed as keyword
arguments to the CacheImpl methods.<a class="changeset-link headerlink reference internal" href="#change-4f115c692e6156a01ef13450ebbd33dc"></a><p></p>
</p>
</li>
<li><p id="change-0.6.0-4"><span class="target" id="change-7a7b3c617612239ebce8bf870d937090"><strong>[feature] </strong></span>Template and TemplateLookup now accept an argument
cache_args, which refers to a dictionary containing
cache parameters.  The cache_dir, cache_url, cache_type,
cache_timeout arguments are deprecated (will probably
never be removed, however) and can be passed
now as cache_args={&#8216;url&#8217;:&lt;some url&gt;, &#8216;type&#8217;:&#8217;memcached&#8217;,
&#8216;timeout&#8217;:50, &#8216;dir&#8217;:&#8217;/path/to/some/directory&#8217;}<a class="changeset-link headerlink reference internal" href="#change-7a7b3c617612239ebce8bf870d937090"></a><p></p>
</p>
</li>
<li><p id="change-0.6.0-5"><span class="target" id="change-d114a1d74a7437b6c3aabe27990a6ed2"><strong>[feature/bug] </strong></span>Can now refer to context variables
within extra arguments to &lt;%block&gt;, &lt;%def&gt;, i.e.
&lt;%block name=&#8221;foo&#8221; cache_key=&#8221;${somekey}&#8221;&gt;.
Filters can also be used in this way, i.e.
&lt;%def name=&#8221;foo()&#8221; filter=&#8221;myfilter&#8221;&gt;
then template.render(myfilter=some_callable)<a class="changeset-link headerlink reference internal" href="#change-d114a1d74a7437b6c3aabe27990a6ed2"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/180/">#180</a></p>
</p>
</li>
<li><p id="change-0.6.0-6"><span class="target" id="change-9f5fae46c69a1c75f7490adf375f8050"><strong>[feature] </strong></span>Added &#8220;&#8211;var name=value&#8221; option to the mako-render
script, allows passing of kw to the template from
the command line.<a class="changeset-link headerlink reference internal" href="#change-9f5fae46c69a1c75f7490adf375f8050"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/178/">#178</a></p>
</p>
</li>
<li><p id="change-0.6.0-7"><span class="target" id="change-ee72323bae6ecd6f7f0412b687fea6b1"><strong>[feature] </strong></span>Added module_writer argument to Template,
TemplateLookup, allows a callable to be passed which
takes over the writing of the template&#8217;s module source
file, so that special environment-specific steps
can be taken.<a class="changeset-link headerlink reference internal" href="#change-ee72323bae6ecd6f7f0412b687fea6b1"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/181/">#181</a></p>
</p>
</li>
<li><p id="change-0.6.0-8"><span class="target" id="change-460448904caed525985e90d2fe23dc6f"><strong>[bug] </strong></span>The exception message in the html_error_template
is now escaped with the HTML filter.<a class="changeset-link headerlink reference internal" href="#change-460448904caed525985e90d2fe23dc6f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/142/">#142</a></p>
</p>
</li>
<li><p id="change-0.6.0-9"><span class="target" id="change-0f53470e3d2ace00fedfec05980570bf"><strong>[bug] </strong></span>Added &#8220;white-space:pre&#8221; style to html_error_template()
for code blocks so that indentation is preserved<a class="changeset-link headerlink reference internal" href="#change-0f53470e3d2ace00fedfec05980570bf"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/173/">#173</a></p>
</p>
</li>
<li><p id="change-0.6.0-10"><span class="target" id="change-a268e715c3a48b1d2e6651948d9f6739"><strong>[bug] </strong></span>The &#8220;benchmark&#8221; example is now Python 3 compatible
(even though several of those old template libs aren&#8217;t
available on Py3K, so YMMV)<a class="changeset-link headerlink reference internal" href="#change-a268e715c3a48b1d2e6651948d9f6739"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/175/">#175</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.5.0">
<h3>0.5.0<a class="headerlink" href="#change-0.5.0" title="Permalink to this headline"></a></h3>
Released: Wed Sep 28 2011<ul class="simple">
<li><p id="change-0.5.0-0"><span class="target" id="change-d25af015b75fa0212ca7997ee8f85ee1"></span>A Template is explicitly disallowed
from having a url that normalizes to relative outside
of the root.   That is, if the Lookup is based
at /home/mytemplates, an include that would place
the ultimate template at
/home/mytemplates/../some_other_directory,
i.e. outside of /home/mytemplates,
is disallowed.   This usage was never intended
despite the lack of an explicit check.
The main issue this causes
is that module files can be written outside
of the module root (or raise an error, if file perms aren&#8217;t
set up), and can also lead to the same template being
cached in the lookup under multiple, relative roots.
TemplateLookup instead has always supported multiple
file roots for this purpose.<a class="changeset-link headerlink reference internal" href="#change-d25af015b75fa0212ca7997ee8f85ee1"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/174/">#174</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.2">
<h3>0.4.2<a class="headerlink" href="#change-0.4.2" title="Permalink to this headline"></a></h3>
Released: Fri Aug 5 2011<ul class="simple">
<li><p id="change-0.4.2-0"><span class="target" id="change-0d5b25f911cea09b48a3cea73dc8b0ad"></span>Fixed bug regarding &lt;%call&gt;/def calls w/ content
whereby the identity of the &#8220;caller&#8221; callable
inside the &lt;%def&gt; would be corrupted by the
presence of another &lt;%call&gt; in the same block.<a class="changeset-link headerlink reference internal" href="#change-0d5b25f911cea09b48a3cea73dc8b0ad"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/170/">#170</a></p>
</p>
</li>
<li><p id="change-0.4.2-1"><span class="target" id="change-131badc51e07746b68123281fa7380a3"></span>Fixed the babel plugin to accommodate &lt;%block&gt;<a class="changeset-link headerlink reference internal" href="#change-131badc51e07746b68123281fa7380a3"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/169/">#169</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.1">
<h3>0.4.1<a class="headerlink" href="#change-0.4.1" title="Permalink to this headline"></a></h3>
Released: Wed Apr 6 2011<ul class="simple">
<li><p id="change-0.4.1-0"><span class="target" id="change-464bf94bda97d9dfacb13c327c30f669"></span>New tag: &lt;%block&gt;.  A variant on &lt;%def&gt; that
evaluates its contents in-place.
Can be named or anonymous,
the named version is intended for inheritance
layouts where any given section can be
surrounded by the &lt;%block&gt; tag in order for
it to become overrideable by inheriting
templates, without the need to specify a
top-level &lt;%def&gt; plus explicit call.
Modified scoping and argument rules as well as a
more strictly enforced usage scheme make it ideal
for this purpose without at all replacing most
other things that defs are still good for.
Lots of new docs.<a class="changeset-link headerlink reference internal" href="#change-464bf94bda97d9dfacb13c327c30f669"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/164/">#164</a></p>
</p>
</li>
<li><p id="change-0.4.1-1"><span class="target" id="change-e5f029ea7d0f9f821c25e308c354006c"></span>a slight adjustment to the &#8220;highlight&#8221; logic
for generating template bound stacktraces.
Will stick to known template source lines
without any extra guessing.<a class="changeset-link headerlink reference internal" href="#change-e5f029ea7d0f9f821c25e308c354006c"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/165/">#165</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.4.0">
<h3>0.4.0<a class="headerlink" href="#change-0.4.0" title="Permalink to this headline"></a></h3>
Released: Sun Mar 6 2011<ul class="simple">
<li><p id="change-0.4.0-0"><span class="target" id="change-24faf88ef298503c8544d93f64092984"></span>A 20% speedup for a basic two-page
inheritance setup rendering
a table of escaped data
(see <a class="reference external" href="http://techspot.zzzeek.org/2010/11/19/quick-mako-vs.-jinja-speed-test/">http://techspot.zzzeek.org/2010/11/19/quick-mako-vs.-jinja-speed-test/</a>).
A few configurational changes which
affect those in the I-don&#8217;t-do-unicode
camp should be noted below.<a class="changeset-link headerlink reference internal" href="#change-24faf88ef298503c8544d93f64092984"></a><p></p>
</p>
</li>
<li><p id="change-0.4.0-1"><span class="target" id="change-4e7e70e466a6b372ba2085724f0c0dcc"></span>The FastEncodingBuffer is now used
by default instead of cStringIO or StringIO,
regardless of whether output_encoding
is set to None or not.  FEB is faster than
both.  Only StringIO allows bytestrings
of unknown encoding to pass right
through, however - while it is of course
not recommended to send bytestrings of unknown
encoding to the output stream, this
mode of usage can be re-enabled by
setting the flag bytestring_passthrough
to True.<a class="changeset-link headerlink reference internal" href="#change-4e7e70e466a6b372ba2085724f0c0dcc"></a><p></p>
</p>
</li>
<li><p id="change-0.4.0-2"><span class="target" id="change-b23a68d0fccb2b8b34d1a727397669a5"></span>disable_unicode mode requires that
output_encoding be set to None - it also
forces the bytestring_passthrough flag
to True.<a class="changeset-link headerlink reference internal" href="#change-b23a68d0fccb2b8b34d1a727397669a5"></a><p></p>
</p>
</li>
<li><p id="change-0.4.0-3"><span class="target" id="change-0237ae4dc8e41beca5fe6392fbd68f4e"></span>the &lt;%namespace&gt; tag raises an error
if the &#8216;template&#8217; and &#8216;module&#8217; attributes
are specified at the same time in
one tag.  A different class is used
for each case which allows a reduction in
runtime conditional logic and function
call overhead.<a class="changeset-link headerlink reference internal" href="#change-0237ae4dc8e41beca5fe6392fbd68f4e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/156/">#156</a></p>
</p>
</li>
<li><p id="change-0.4.0-4"><span class="target" id="change-a23ec787ca226d13d1115300493de625"></span>the keys() in the Context, as well as
it&#8217;s internal _data dictionary, now
include just what was specified to
render() as well as Mako builtins
&#8216;caller&#8217;, &#8216;capture&#8217;.  The contents
of __builtin__ are no longer copied.
Thanks to Daniel Lopez for pointing
this out.<a class="changeset-link headerlink reference internal" href="#change-a23ec787ca226d13d1115300493de625"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/159/">#159</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.6">
<h3>0.3.6<a class="headerlink" href="#change-0.3.6" title="Permalink to this headline"></a></h3>
Released: Sat Nov 13 2010<ul class="simple">
<li><p id="change-0.3.6-0"><span class="target" id="change-ba90f64b03241356193e4e9fef913f63"></span>Documentation is on Sphinx.<a class="changeset-link headerlink reference internal" href="#change-ba90f64b03241356193e4e9fef913f63"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/126/">#126</a></p>
</p>
</li>
<li><p id="change-0.3.6-1"><span class="target" id="change-6fa26d3bfceaff55a258fb53794e6313"></span>Beaker is now part of &#8220;extras&#8221; in
setup.py instead of &#8220;install_requires&#8221;.
This to produce a lighter weight install
for those who don&#8217;t use the caching
as well as to conform to Pyramid
deployment practices.<a class="changeset-link headerlink reference internal" href="#change-6fa26d3bfceaff55a258fb53794e6313"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/154/">#154</a></p>
</p>
</li>
<li><p id="change-0.3.6-2"><span class="target" id="change-add98954fc4473f31b998fd2931c0c2c"></span>The Beaker import (or attempt thereof)
is delayed until actually needed;
this to remove the performance penalty
from startup, particularly for
&#8220;single execution&#8221; environments
such as shell scripts.<a class="changeset-link headerlink reference internal" href="#change-add98954fc4473f31b998fd2931c0c2c"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/153/">#153</a></p>
</p>
</li>
<li><p id="change-0.3.6-3"><span class="target" id="change-6f50239252b9579a5a952a529cce3c8f"></span>Patch to lexer to not generate an empty
&#8216;&#8217; write in the case of backslash-ended
lines.<a class="changeset-link headerlink reference internal" href="#change-6f50239252b9579a5a952a529cce3c8f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/155/">#155</a></p>
</p>
</li>
<li><p id="change-0.3.6-4"><span class="target" id="change-9007a381dea9bd8a980aaf646712fa95"></span>Fixed missing <a href="#id5"><span class="problematic" id="id6">**</span></a>extra collection in
setup.py which prevented setup.py
from running 2to3 on install.<a class="changeset-link headerlink reference internal" href="#change-9007a381dea9bd8a980aaf646712fa95"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/148/">#148</a></p>
</p>
</li>
<li><p id="change-0.3.6-5"><span class="target" id="change-d94085d95e60f190e30871ff1c472781"></span>New flag on Template, TemplateLookup -
strict_undefined=True, will cause
variables not found in the context to
raise a NameError immediately, instead of
defaulting to the UNDEFINED value.<a class="changeset-link headerlink reference internal" href="#change-d94085d95e60f190e30871ff1c472781"></a><p></p>
</p>
</li>
<li><p id="change-0.3.6-6"><span class="target" id="change-c7f4bd0543dcd61c301325887e5e868f"></span>The range of Python identifiers that
are considered &#8220;undefined&#8221;, meaning they
are pulled from the context, has been
trimmed back to not include variables
declared inside of expressions (i.e. from
list comprehensions), as well as
in the argument list of lambdas.  This
to better support the strict_undefined
feature.  The change should be
fully backwards-compatible but involved
a little bit of tinkering in the AST code,
which hadn&#8217;t really been touched for
a couple of years, just FYI.<a class="changeset-link headerlink reference internal" href="#change-c7f4bd0543dcd61c301325887e5e868f"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.5">
<h3>0.3.5<a class="headerlink" href="#change-0.3.5" title="Permalink to this headline"></a></h3>
Released: Sun Oct 24 2010<ul class="simple">
<li><p id="change-0.3.5-0"><span class="target" id="change-4f131130d9a9c7503c1285d76453772e"></span>The &lt;%namespace&gt; tag allows expressions
for the <cite>file</cite> argument, i.e. with ${}.
The <cite>context</cite> variable, if needed,
must be referenced explicitly.<a class="changeset-link headerlink reference internal" href="#change-4f131130d9a9c7503c1285d76453772e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/141/">#141</a></p>
</p>
</li>
<li><p id="change-0.3.5-1"><span class="target" id="change-9260777204b90b5d2ef50591a9321f7f"></span>${} expressions embedded in tags,
such as &lt;%foo:bar x=&#8221;${...}&#8221;&gt;, now
allow multiline Python expressions.<a class="changeset-link headerlink reference internal" href="#change-9260777204b90b5d2ef50591a9321f7f"></a><p></p>
</p>
</li>
<li><p id="change-0.3.5-2"><span class="target" id="change-b17753b5fc8d7a350d6c9d07d9e8698b"></span>Fixed previously non-covered regular
expression, such that using a ${} expression
inside of a tag element that doesn&#8217;t allow
them raises a CompileException instead of
silently failing.<a class="changeset-link headerlink reference internal" href="#change-b17753b5fc8d7a350d6c9d07d9e8698b"></a><p></p>
</p>
</li>
<li><p id="change-0.3.5-3"><span class="target" id="change-26a430536a4ef0aea275166c8ffead73"></span>Added a try/except around &#8220;import markupsafe&#8221;.
This to support GAE which can&#8217;t run markupsafe. No idea whatsoever if the
install_requires in setup.py also breaks GAE,
couldn&#8217;t get an answer on this.<a class="changeset-link headerlink reference internal" href="#change-26a430536a4ef0aea275166c8ffead73"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/151/">#151</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.4">
<h3>0.3.4<a class="headerlink" href="#change-0.3.4" title="Permalink to this headline"></a></h3>
Released: Tue Jun 22 2010<ul class="simple">
<li><p id="change-0.3.4-0"><span class="target" id="change-42a2094bdc5fa56af96f16ead2ea7a85"></span>Now using MarkupSafe for HTML escaping,
i.e. in place of cgi.escape().  Faster
C-based implementation and also escapes
single quotes for additional security.
Supports the __html__ attribute for
the given expression as well.<p>When using &#8220;disable_unicode&#8221; mode,
a pure Python HTML escaper function
is used which also quotes single quotes.</p>
<p>Note that Pylons by default doesn&#8217;t
use Mako&#8217;s filter - check your
environment.py file.</p>
<a class="changeset-link headerlink reference internal" href="#change-42a2094bdc5fa56af96f16ead2ea7a85"></a><p></p>
</p>
</li>
<li><p id="change-0.3.4-1"><span class="target" id="change-c6b3b30f351cb6e68140eb7ff8ec9339"></span>Fixed call to &#8220;unicode.strip&#8221; in
exceptions.text_error_template which
is not Py3k compatible.<a class="changeset-link headerlink reference internal" href="#change-c6b3b30f351cb6e68140eb7ff8ec9339"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/137/">#137</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.3">
<h3>0.3.3<a class="headerlink" href="#change-0.3.3" title="Permalink to this headline"></a></h3>
Released: Mon May 31 2010<ul class="simple">
<li><p id="change-0.3.3-0"><span class="target" id="change-bc6d3046e00861b0a815a3373dc21489"></span>Added conditional to RichTraceback
such that if no traceback is passed
and sys.exc_info() has been reset,
the formatter just returns blank
for the &#8220;traceback&#8221; portion.<a class="changeset-link headerlink reference internal" href="#change-bc6d3046e00861b0a815a3373dc21489"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/135/">#135</a></p>
</p>
</li>
<li><p id="change-0.3.3-1"><span class="target" id="change-7398285484aa0b44f7cb4314d635343f"></span>Fixed sometimes incorrect usage of
exc.__class__.__name__
in html/text error templates when using
Python 2.4<a class="changeset-link headerlink reference internal" href="#change-7398285484aa0b44f7cb4314d635343f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/131/">#131</a></p>
</p>
</li>
<li><p id="change-0.3.3-2"><span class="target" id="change-fc38c54c185a03815b882ae0235dd0ec"></span>Fixed broken &#64;property decorator on
template.last_modified<a class="changeset-link headerlink reference internal" href="#change-fc38c54c185a03815b882ae0235dd0ec"></a><p></p>
</p>
</li>
<li><p id="change-0.3.3-3"><span class="target" id="change-e351477ece87f96ce3b8dcbe2093927e"></span>Fixed error formatting when a stacktrace
line contains no line number, as in when
inside an eval/exec-generated function.<a class="changeset-link headerlink reference internal" href="#change-e351477ece87f96ce3b8dcbe2093927e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/132/">#132</a></p>
</p>
</li>
<li><p id="change-0.3.3-4"><span class="target" id="change-8465d2f035b94270f61add8d37b484b6"></span>When a .py is being created, the tempfile
where the source is stored temporarily is
now made in the same directory as that of
the .py file.  This ensures that the two
files share the same filesystem, thus
avoiding cross-filesystem synchronization
issues.  Thanks to Charles Cazabon.<a class="changeset-link headerlink reference internal" href="#change-8465d2f035b94270f61add8d37b484b6"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.2">
<h3>0.3.2<a class="headerlink" href="#change-0.3.2" title="Permalink to this headline"></a></h3>
Released: Thu Mar 11 2010<ul class="simple">
<li><p id="change-0.3.2-0"><span class="target" id="change-99967455a3839ef3b397981de9a7b95e"></span>Calling a def from the top, via
template.get_def(...).render() now checks the
argument signature the same way as it did in
0.2.5, so that TypeError is not raised.
reopen of<a class="changeset-link headerlink reference internal" href="#change-99967455a3839ef3b397981de9a7b95e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/116/">#116</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.1">
<h3>0.3.1<a class="headerlink" href="#change-0.3.1" title="Permalink to this headline"></a></h3>
Released: Sun Mar 7 2010<ul class="simple">
<li><p id="change-0.3.1-0"><span class="target" id="change-10954fab107bd4f83df29f01b7a1db1a"></span>Fixed incorrect dir name in setup.py<a class="changeset-link headerlink reference internal" href="#change-10954fab107bd4f83df29f01b7a1db1a"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/129/">#129</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.3.0">
<h3>0.3.0<a class="headerlink" href="#change-0.3.0" title="Permalink to this headline"></a></h3>
Released: Fri Mar 5 2010<ul class="simple">
<li><p id="change-0.3.0-0"><span class="target" id="change-6696642b595c45f48c676d4321c80f4e"></span>Python 2.3 support is dropped.<a class="changeset-link headerlink reference internal" href="#change-6696642b595c45f48c676d4321c80f4e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/123/">#123</a></p>
</p>
</li>
<li><p id="change-0.3.0-1"><span class="target" id="change-4ac95d25798d0af74fcbbda6805f4117"></span>Python 3 support is added ! See README.py3k
for installation and testing notes.<a class="changeset-link headerlink reference internal" href="#change-4ac95d25798d0af74fcbbda6805f4117"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/119/">#119</a></p>
</p>
</li>
<li><p id="change-0.3.0-2"><span class="target" id="change-580b71306f06a35525d94dbbc866dff5"></span>Unit tests now run with nose.<a class="changeset-link headerlink reference internal" href="#change-580b71306f06a35525d94dbbc866dff5"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/127/">#127</a></p>
</p>
</li>
<li><p id="change-0.3.0-3"><span class="target" id="change-254948cdd845470bc120bd9537620480"></span>Source code escaping has been simplified.
In particular, module source files are now
generated with the Python &#8220;magic encoding
comment&#8221;, and source code is passed through
mostly unescaped, except for that code which
is regenerated from parsed Python source.
This fixes usage of unicode in
&lt;%namespace:defname&gt; tags.<a class="changeset-link headerlink reference internal" href="#change-254948cdd845470bc120bd9537620480"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/99/">#99</a></p>
</p>
</li>
<li><p id="change-0.3.0-4"><span class="target" id="change-b8d940f383df524cbcb09a4aa8785055"></span>RichTraceback(), html_error_template().render(),
text_error_template().render() now accept &#8220;error&#8221;
and &#8220;traceback&#8221; as optional arguments, and
these are now actually used.<a class="changeset-link headerlink reference internal" href="#change-b8d940f383df524cbcb09a4aa8785055"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/122/">#122</a></p>
</p>
</li>
<li><p id="change-0.3.0-5"><span class="target" id="change-c8b4a5c26a15e967ede79e6b3fc12673"></span>The exception output generated when
format_exceptions=True will now be as a Python
unicode if it occurred during render_unicode(),
or an encoded string if during render().<a class="changeset-link headerlink reference internal" href="#change-c8b4a5c26a15e967ede79e6b3fc12673"></a><p></p>
</p>
</li>
<li><p id="change-0.3.0-6"><span class="target" id="change-3685f613780a1778275c5a1c06ffd14d"></span>A percent sign can be emitted as the first
non-whitespace character on a line by escaping
it as in &#8220;%%&#8221;.<a class="changeset-link headerlink reference internal" href="#change-3685f613780a1778275c5a1c06ffd14d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/112/">#112</a></p>
</p>
</li>
<li><p id="change-0.3.0-7"><span class="target" id="change-0b344165d32f9da5eebc93d2e36b751d"></span>Template accepts empty control structure, i.e.
% if: %endif, etc.<a class="changeset-link headerlink reference internal" href="#change-0b344165d32f9da5eebc93d2e36b751d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/94/">#94</a></p>
</p>
</li>
<li><p id="change-0.3.0-8"><span class="target" id="change-4e41287388f6da51881b95c2fc27ff9d"></span>The &lt;%page args&gt; tag can now be used in a base
inheriting template - the full set of render()
arguments are passed down through the inherits
chain.  Undeclared arguments go into <a href="#id7"><span class="problematic" id="id8">**</span></a>pageargs
as usual.<a class="changeset-link headerlink reference internal" href="#change-4e41287388f6da51881b95c2fc27ff9d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/116/">#116</a></p>
</p>
</li>
<li><p id="change-0.3.0-9"><span class="target" id="change-8f84b7484a62925c50f48334ee6a9756"></span>defs declared within a &lt;%namespace&gt; section, an
uncommon feature, have been improved.  The defs
no longer get doubly-rendered in the body() scope,
and now allow local variable assignment without
breakage.<a class="changeset-link headerlink reference internal" href="#change-8f84b7484a62925c50f48334ee6a9756"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/109/">#109</a></p>
</p>
</li>
<li><p id="change-0.3.0-10"><span class="target" id="change-b282c56c8f7389792db2e50b26f4d871"></span>Windows paths are handled correctly if a Template
is passed only an absolute filename (i.e. with c:
drive etc.)  and no URI - the URI is converted
to a forward-slash path and module_directory
is treated as a windows path.<a class="changeset-link headerlink reference internal" href="#change-b282c56c8f7389792db2e50b26f4d871"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/128/">#128</a></p>
</p>
</li>
<li><p id="change-0.3.0-11"><span class="target" id="change-5ea16c786c94f8e04c3e8f5ea3a3b423"></span>TemplateLookup raises TopLevelLookupException for
a given path that is a directory, not a filename,
instead of passing through to the template to
generate IOError.<a class="changeset-link headerlink reference internal" href="#change-5ea16c786c94f8e04c3e8f5ea3a3b423"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/73/">#73</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.6">
<h3>0.2.6<a class="headerlink" href="#change-0.2.6" title="Permalink to this headline"></a></h3>
no release date<ul class="simple">
<li><p id="change-0.2.6-0"><span class="target" id="change-d1e4c26171841e1c4fbc0e3f56d0bf96"></span>Fix mako function decorators to preserve the
original function&#8217;s name in all cases. Patch
from Scott Torborg.<a class="changeset-link headerlink reference internal" href="#change-d1e4c26171841e1c4fbc0e3f56d0bf96"></a><p></p>
</p>
</li>
<li><p id="change-0.2.6-1"><span class="target" id="change-d1851b428e06541460cbd70bd5c6131f"></span>Support the &lt;%namespacename:defname&gt; syntax in
the babel extractor.<a class="changeset-link headerlink reference internal" href="#change-d1851b428e06541460cbd70bd5c6131f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/118/">#118</a></p>
</p>
</li>
<li><p id="change-0.2.6-2"><span class="target" id="change-398bff9c71f24a9ff6c180d0a05018b4"></span>Further fixes to unicode handling of .py files with the
html_error_template.<a class="changeset-link headerlink reference internal" href="#change-398bff9c71f24a9ff6c180d0a05018b4"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/88/">#88</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.5">
<h3>0.2.5<a class="headerlink" href="#change-0.2.5" title="Permalink to this headline"></a></h3>
Released: Mon Sep  7 2009<ul class="simple">
<li><p id="change-0.2.5-0"><span class="target" id="change-c79258c92155abe15ab0f249e56d36f8"></span>Added a &#8220;decorator&#8221; kw argument to &lt;%def&gt;,
allows custom decoration functions to wrap
rendering callables.  Mainly intended for
custom caching algorithms, not sure what
other uses there may be (but there may be).
Examples are in the &#8220;filtering&#8221; docs.<a class="changeset-link headerlink reference internal" href="#change-c79258c92155abe15ab0f249e56d36f8"></a><p></p>
</p>
</li>
<li><p id="change-0.2.5-1"><span class="target" id="change-4807d411f1e3cfa18c32decd089cab90"></span>When Mako creates subdirectories in which
to store templates, it uses the more
permissive mode of 0775 instead of 0750,
helping out with certain multi-process
scenarios. Note that the mode is always
subject to the restrictions of the existing
umask.<a class="changeset-link headerlink reference internal" href="#change-4807d411f1e3cfa18c32decd089cab90"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/101/">#101</a></p>
</p>
</li>
<li><p id="change-0.2.5-2"><span class="target" id="change-8af1bb98b05bf16f832aaea1707f20fb"></span>Fixed namespace.__getattr__() to raise
AttributeError on attribute not found
instead of RuntimeError.<a class="changeset-link headerlink reference internal" href="#change-8af1bb98b05bf16f832aaea1707f20fb"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/104/">#104</a></p>
</p>
</li>
<li><p id="change-0.2.5-3"><span class="target" id="change-ca99b7588c54e67a73569aad8e06c0ce"></span>Added last_modified accessor to Template,
returns the time.time() when the module
was created.<a class="changeset-link headerlink reference internal" href="#change-ca99b7588c54e67a73569aad8e06c0ce"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/97/">#97</a></p>
</p>
</li>
<li><p id="change-0.2.5-4"><span class="target" id="change-d18e860647e39ec0f72eeb38740111cb"></span>Fixed lexing support for whitespace
around &#8216;=&#8217; sign in defs.<a class="changeset-link headerlink reference internal" href="#change-d18e860647e39ec0f72eeb38740111cb"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/102/">#102</a></p>
</p>
</li>
<li><p id="change-0.2.5-5"><span class="target" id="change-602d7edb91f7f94638496e5544c0b8ee"></span>Removed errant &#8220;lower()&#8221; in the lexer which
was causing tags to compile with
case-insensitive names, thus messing up
custom &lt;%call&gt; names.<a class="changeset-link headerlink reference internal" href="#change-602d7edb91f7f94638496e5544c0b8ee"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/108/">#108</a></p>
</p>
</li>
<li><p id="change-0.2.5-6"><span class="target" id="change-9980854809a31d4b404208e286a70d41"></span>added &#8220;mako.__version__&#8221; attribute to
the base module.<a class="changeset-link headerlink reference internal" href="#change-9980854809a31d4b404208e286a70d41"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/110/">#110</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.4">
<h3>0.2.4<a class="headerlink" href="#change-0.2.4" title="Permalink to this headline"></a></h3>
Released: Tue Dec 23 2008<ul class="simple">
<li><p id="change-0.2.4-0"><span class="target" id="change-4854b3f9b6cb5776937ab0695fff1435"></span>Fixed compatibility with Jython 2.5b1.<a class="changeset-link headerlink reference internal" href="#change-4854b3f9b6cb5776937ab0695fff1435"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.3">
<h3>0.2.3<a class="headerlink" href="#change-0.2.3" title="Permalink to this headline"></a></h3>
Released: Sun Nov 23 2008<ul class="simple">
<li><p id="change-0.2.3-0"><span class="target" id="change-37bce8b359a8e44e7b91c12652eee2b8"></span>the &lt;%namespacename:defname&gt; syntax described at
<a class="reference external" href="http://techspot.zzzeek.org/?p=28">http://techspot.zzzeek.org/?p=28</a> has now
been added as a built in syntax, and is recommended
as a more modern syntax versus &lt;%call expr=&#8221;expression&#8221;&gt;.
The %call tag itself will always remain,
with &lt;%namespacename:defname&gt; presenting a more HTML-like
alternative to calling defs, both plain and
nested.  Many examples of the new syntax are in the
&#8220;Calling a def with embedded content&#8221; section
of the docs.<a class="changeset-link headerlink reference internal" href="#change-37bce8b359a8e44e7b91c12652eee2b8"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-1"><span class="target" id="change-35a6c7b85a04372530f2be1805959799"></span>added support for Jython 2.5.<a class="changeset-link headerlink reference internal" href="#change-35a6c7b85a04372530f2be1805959799"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-2"><span class="target" id="change-f8334ef0e1678c06e374ba1a0d3931cd"></span>cache module now uses Beaker&#8217;s CacheManager
object directly, so that all cache types are included.
memcached is available as both &#8220;ext:memcached&#8221; and
&#8220;memcached&#8221;, the latter for backwards compatibility.<a class="changeset-link headerlink reference internal" href="#change-f8334ef0e1678c06e374ba1a0d3931cd"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-3"><span class="target" id="change-ed3a6c17f2cbd83a593de4d2724a6a84"></span>added &#8220;cache&#8221; accessor to Template, Namespace.
e.g.  ${local.cache.get(&#8216;somekey&#8217;)} or
template.cache.invalidate_body()<a class="changeset-link headerlink reference internal" href="#change-ed3a6c17f2cbd83a593de4d2724a6a84"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-4"><span class="target" id="change-70e586f7cde0ac7b344e8e8986c58b9a"></span>added &#8220;cache_enabled=True&#8221; flag to Template,
TemplateLookup.  Setting this to False causes cache
operations to &#8220;pass through&#8221; and execute every time;
this flag should be integrated in Pylons with its own
cache_enabled configuration setting.<a class="changeset-link headerlink reference internal" href="#change-70e586f7cde0ac7b344e8e8986c58b9a"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-5"><span class="target" id="change-fe9e64fb24df2528a185b3317fce35fb"></span>the Cache object now supports invalidate_def(name),
invalidate_body(), invalidate_closure(name),
invalidate(key), which will remove the given key
from the cache, if it exists.  The cache arguments
(i.e. storage type) are derived from whatever has
been already persisted for that template.<a class="changeset-link headerlink reference internal" href="#change-fe9e64fb24df2528a185b3317fce35fb"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/92/">#92</a></p>
</p>
</li>
<li><p id="change-0.2.3-6"><span class="target" id="change-fc8e53f27e96f1442a8e85b52988d4c4"></span>For cache changes to work fully, Beaker 1.1 is required.
1.0.1 and up will work as well with the exception of
cache expiry.  Note that Beaker 1.1 is <strong>required</strong>
for applications which use dynamically generated keys,
since previous versions will permanently store state in memory
for each individual key, thus consuming all available
memory for an arbitrarily large number of distinct
keys.<a class="changeset-link headerlink reference internal" href="#change-fc8e53f27e96f1442a8e85b52988d4c4"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-7"><span class="target" id="change-6215a523e4a44009dd085141f89bb1ea"></span>fixed bug whereby an &lt;%included&gt; template with
&lt;%page&gt; args named the same as a __builtin__ would not
honor the default value specified in &lt;%page&gt;<a class="changeset-link headerlink reference internal" href="#change-6215a523e4a44009dd085141f89bb1ea"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/93/">#93</a></p>
</p>
</li>
<li><p id="change-0.2.3-8"><span class="target" id="change-c269853926ff7f52a94ddf94c705cff7"></span>fixed the html_error_template not handling tracebacks from
normal .py files with a magic encoding comment<a class="changeset-link headerlink reference internal" href="#change-c269853926ff7f52a94ddf94c705cff7"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/88/">#88</a></p>
</p>
</li>
<li><p id="change-0.2.3-9"><span class="target" id="change-87c44d844a042343e22d55e2a2b8d4e9"></span>RichTraceback() now accepts an optional traceback object
to be used in place of sys.exc_info()[2].  html_error_template()
and text_error_template() accept an optional
render()-time argument &#8220;traceback&#8221; which is passed to the
RichTraceback object.<a class="changeset-link headerlink reference internal" href="#change-87c44d844a042343e22d55e2a2b8d4e9"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-10"><span class="target" id="change-7a562520a57d62460f54fadac0d94100"></span>added ModuleTemplate class, which allows the construction
of a Template given a Python module generated by a previous
Template.   This allows Python modules alone to be used
as templates with no compilation step.   Source code
and template source are optional but allow error reporting
to work correctly.<a class="changeset-link headerlink reference internal" href="#change-7a562520a57d62460f54fadac0d94100"></a><p></p>
</p>
</li>
<li><p id="change-0.2.3-11"><span class="target" id="change-6e699add881ad62aa72c44efa3899ae5"></span>fixed Python 2.3 compat. in mako.pyparser<a class="changeset-link headerlink reference internal" href="#change-6e699add881ad62aa72c44efa3899ae5"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/90/">#90</a></p>
</p>
</li>
<li><p id="change-0.2.3-12"><span class="target" id="change-54c464fa5c94b0aba86b2b99d13f9eb4"></span>fix Babel 0.9.3 compatibility; stripping comment tags is now
optional (and enabled by default).<a class="changeset-link headerlink reference internal" href="#change-54c464fa5c94b0aba86b2b99d13f9eb4"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.2">
<h3>0.2.2<a class="headerlink" href="#change-0.2.2" title="Permalink to this headline"></a></h3>
Released: Mon Jun 23 2008<ul class="simple">
<li><p id="change-0.2.2-0"><span class="target" id="change-df54b04a766bd7511f1b92e438573fdf"></span>cached blocks now use the current context when rendering
an expired section, instead of the original context
passed in<a class="changeset-link headerlink reference internal" href="#change-df54b04a766bd7511f1b92e438573fdf"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/87/">#87</a></p>
</p>
</li>
<li><p id="change-0.2.2-1"><span class="target" id="change-c6f8379cfe314e3a5a202e256699d586"></span>fixed a critical issue regarding caching, whereby
a cached block would raise an error when called within a
cache-refresh operation that was initiated after the
initiating template had completed rendering.<a class="changeset-link headerlink reference internal" href="#change-c6f8379cfe314e3a5a202e256699d586"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.1">
<h3>0.2.1<a class="headerlink" href="#change-0.2.1" title="Permalink to this headline"></a></h3>
Released: Mon Jun 16 2008<ul class="simple">
<li><p id="change-0.2.1-0"><span class="target" id="change-908eed7e4807846bda8b7883b98f4a02"></span>fixed bug where &#8216;output_encoding&#8217; parameter would prevent
render_unicode() from returning a unicode object.<a class="changeset-link headerlink reference internal" href="#change-908eed7e4807846bda8b7883b98f4a02"></a><p></p>
</p>
</li>
<li><p id="change-0.2.1-1"><span class="target" id="change-765658fae385e8c30cafd7372f7da000"></span>bumped magic number, which forces template recompile for
this version (fixes incompatible compile symbols from 0.1
series).<a class="changeset-link headerlink reference internal" href="#change-765658fae385e8c30cafd7372f7da000"></a><p></p>
</p>
</li>
<li><p id="change-0.2.1-2"><span class="target" id="change-00ae3ce99ec2767e28b645a85815d1f9"></span>added a few docs for cache options, specifically those that
help with memcached.<a class="changeset-link headerlink reference internal" href="#change-00ae3ce99ec2767e28b645a85815d1f9"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.2.0">
<h3>0.2.0<a class="headerlink" href="#change-0.2.0" title="Permalink to this headline"></a></h3>
Released: Tue Jun  3 2008<ul class="simple">
<li><p id="change-0.2.0-0"><span class="target" id="change-7df2aeab716d6fcf91429566949d3297"></span>Speed improvements (as though we needed them, but people
contributed and there you go):<a class="changeset-link headerlink reference internal" href="#change-7df2aeab716d6fcf91429566949d3297"></a><p></p>
</p>
</li>
<li><p id="change-0.2.0-1"><span class="target" id="change-d9c6b2b32a4d7d52614f9557a59dd57d"></span>added &#8220;bytestring passthru&#8221; mode, via
<cite>disable_unicode=True</cite> argument passed to Template or
TemplateLookup. All unicode-awareness and filtering is
turned off, and template modules are generated with
the appropriate magic encoding comment. In this mode,
template expressions can only receive raw bytestrings
or Unicode objects which represent straight ASCII, and
render_unicode() may not be used if multibyte
characters are present. When enabled, speed
improvement around 10-20%. (courtesy
anonymous guest)<a class="changeset-link headerlink reference internal" href="#change-d9c6b2b32a4d7d52614f9557a59dd57d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/77/">#77</a></p>
</p>
</li>
<li><p id="change-0.2.0-2"><span class="target" id="change-1e1d8d3bf89815e481535914ac54e954"></span>inlined the &#8220;write&#8221; function of Context into a local
template variable. This affords a 12-30% speedup in
template render time. (idea courtesy same anonymous
guest)<a class="changeset-link headerlink reference internal" href="#change-1e1d8d3bf89815e481535914ac54e954"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/76/">#76</a></p>
</p>
</li>
<li><p id="change-0.2.0-3"><span class="target" id="change-4425ad7ea582f24d81e9ca7ef4f92e6e"></span>New Features, API changes:<a class="changeset-link headerlink reference internal" href="#change-4425ad7ea582f24d81e9ca7ef4f92e6e"></a><p></p>
</p>
</li>
<li><p id="change-0.2.0-4"><span class="target" id="change-9da04566e35e386418120e4d29572595"></span>added &#8220;attr&#8221; accessor to namespaces. Returns
attributes configured as module level attributes, i.e.
within &lt;%! %&gt; sections.  i.e.:<p># somefile.html
&lt;%!</p>
<blockquote>
<div>foo = 27</div></blockquote>
<p>%&gt;</p>
<p># some other template
&lt;%namespace name=&#8221;myns&#8221; file=&#8221;somefile.html&#8221;/&gt;
${myns.attr.foo}</p>
<p>The slight backwards incompatibility here is, you
can&#8217;t have namespace defs named &#8220;attr&#8221; since the
&#8220;attr&#8221; descriptor will occlude it.</p>
<a class="changeset-link headerlink reference internal" href="#change-9da04566e35e386418120e4d29572595"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/62/">#62</a></p>
</p>
</li>
<li><p id="change-0.2.0-5"><span class="target" id="change-47006dc7aa8160f70e0ed126113f0f5a"></span>cache_key argument can now render arguments passed
directly to the %page or %def, i.e. &lt;%def
name=&#8221;foo(x)&#8221; cached=&#8221;True&#8221; cache_key=&#8221;${x}&#8221;/&gt;<a class="changeset-link headerlink reference internal" href="#change-47006dc7aa8160f70e0ed126113f0f5a"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/78/">#78</a></p>
</p>
</li>
<li><p id="change-0.2.0-6"><span class="target" id="change-d5e0803b1807eb8f0128d3ccd973525f"></span>some functions on Context are now private:
_push_buffer(), _pop_buffer(),
caller_stack._push_frame(), caller_stack._pop_frame().<a class="changeset-link headerlink reference internal" href="#change-d5e0803b1807eb8f0128d3ccd973525f"></a><p></p>
</p>
</li>
<li><p id="change-0.2.0-7"><span class="target" id="change-c53f2fb7206af6bed4a266fc8e39da44"></span>added a runner script &#8220;mako-render&#8221; which renders
standard input as a template to stdout<a class="changeset-link headerlink reference internal" href="#change-c53f2fb7206af6bed4a266fc8e39da44"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/56/">#56</a>, <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/81/">#81</a></p>
</p>
</li>
<li><p id="change-0.2.0-8"><span class="target" id="change-1cf0feb7e1a86092b97d375978dba60d"><strong>[bugfixes] </strong></span>can now use most names from __builtins__ as variable
names without explicit declaration (i.e. &#8216;id&#8217;,
&#8216;exception&#8217;, &#8216;range&#8217;, etc.)<a class="changeset-link headerlink reference internal" href="#change-1cf0feb7e1a86092b97d375978dba60d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/83/">#83</a>, <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/84/">#84</a></p>
</p>
</li>
<li><p id="change-0.2.0-9"><span class="target" id="change-b42dffceb4d5586db34c320d5368a1a0"><strong>[bugfixes] </strong></span>can also use builtin names as local variable names
(i.e. dict, locals) (came from fix for)<a class="changeset-link headerlink reference internal" href="#change-b42dffceb4d5586db34c320d5368a1a0"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/84/">#84</a></p>
</p>
</li>
<li><p id="change-0.2.0-10"><span class="target" id="change-66d96bea88684ee0d97467bfe1ccbd28"><strong>[bugfixes] </strong></span>fixed bug in python generation when variable names are
used with identifiers like &#8220;else&#8221;, &#8220;finally&#8221;, etc.
inside them<a class="changeset-link headerlink reference internal" href="#change-66d96bea88684ee0d97467bfe1ccbd28"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/68/">#68</a></p>
</p>
</li>
<li><p id="change-0.2.0-11"><span class="target" id="change-bc4345614fb8e0b7a0f6a4cd7c824afa"><strong>[bugfixes] </strong></span>fixed codegen bug which occured when using &lt;%page&gt;
level caching, combined with an expression-based
cache_key, combined with the usage of &lt;%namespace
import=&#8221;*&#8221;/&gt; - fixed lexer exceptions not cleaning up
temporary files, which could lead to a maximum number
of file descriptors used in the process<a class="changeset-link headerlink reference internal" href="#change-bc4345614fb8e0b7a0f6a4cd7c824afa"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/69/">#69</a></p>
</p>
</li>
<li><p id="change-0.2.0-12"><span class="target" id="change-f7edc331eeedd9d0e4e390279db7f1c6"><strong>[bugfixes] </strong></span>fixed issue with inline format_exceptions that was
producing blank exception pages when an inheriting
template is present<a class="changeset-link headerlink reference internal" href="#change-f7edc331eeedd9d0e4e390279db7f1c6"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/71/">#71</a></p>
</p>
</li>
<li><p id="change-0.2.0-13"><span class="target" id="change-c380b62194e7806f2ba96a72cf35f4a5"><strong>[bugfixes] </strong></span>format_exceptions will apply the encoding options of
html_error_template() to the buffered output<a class="changeset-link headerlink reference internal" href="#change-c380b62194e7806f2ba96a72cf35f4a5"></a><p></p>
</p>
</li>
<li><p id="change-0.2.0-14"><span class="target" id="change-aaa77e397a4d5a128ee8ead89aca6552"><strong>[bugfixes] </strong></span>rewrote the &#8220;whitespace adjuster&#8221; function to work
with more elaborate combinations of quotes and
comments<a class="changeset-link headerlink reference internal" href="#change-aaa77e397a4d5a128ee8ead89aca6552"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/75/">#75</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.10">
<h3>0.1.10<a class="headerlink" href="#change-0.1.10" title="Permalink to this headline"></a></h3>
no release date<ul class="simple">
<li><p id="change-0.1.10-0"><span class="target" id="change-35446d7c963081d4cb4420f1a2b68beb"></span>fixed propagation of &#8216;caller&#8217; such that nested %def calls
within a &lt;%call&gt; tag&#8217;s argument list propigates &#8216;caller&#8217;
to the %call function itself (propigates to the inner
calls too, this is a slight side effect which previously
existed anyway)<a class="changeset-link headerlink reference internal" href="#change-35446d7c963081d4cb4420f1a2b68beb"></a><p></p>
</p>
</li>
<li><p id="change-0.1.10-1"><span class="target" id="change-60935107d31e2d12b8725bfa98a4e15e"></span>fixed bug where local.get_namespace() could put an
incorrect &#8220;self&#8221; in the current context<a class="changeset-link headerlink reference internal" href="#change-60935107d31e2d12b8725bfa98a4e15e"></a><p></p>
</p>
</li>
<li><p id="change-0.1.10-2"><span class="target" id="change-a03b9e4773bb4ad04e67baf857946095"></span>fixed another namespace bug where the namespace functions
did not have access to the correct context containing
their &#8216;self&#8217; and &#8216;parent&#8217;<a class="changeset-link headerlink reference internal" href="#change-a03b9e4773bb4ad04e67baf857946095"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.9">
<h3>0.1.9<a class="headerlink" href="#change-0.1.9" title="Permalink to this headline"></a></h3>
no release date<ul class="simple">
<li><p id="change-0.1.9-0"><span class="target" id="change-b6be8d8f9ba7a78451926e2e5a00168a"></span>filters.Decode filter can also accept a non-basestring
object and will call str() + unicode() on it<a class="changeset-link headerlink reference internal" href="#change-b6be8d8f9ba7a78451926e2e5a00168a"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/47/">#47</a></p>
</p>
</li>
<li><p id="change-0.1.9-1"><span class="target" id="change-80d0f355df4c2e0e2044d9b34ba8ffe6"></span>comments can be placed at the end of control lines,
i.e. if foo: # a comment,, thanks to
Paul Colomiets<a class="changeset-link headerlink reference internal" href="#change-80d0f355df4c2e0e2044d9b34ba8ffe6"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/53/">#53</a></p>
</p>
</li>
<li><p id="change-0.1.9-2"><span class="target" id="change-4a1a251233e66deb83ebbca806c75e7e"></span>fixed expressions and page tag arguments and with embedded
newlines in CRLF templates, follow up to, thanks
Eric Woroshow<a class="changeset-link headerlink reference internal" href="#change-4a1a251233e66deb83ebbca806c75e7e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/16/">#16</a></p>
</p>
</li>
<li><p id="change-0.1.9-3"><span class="target" id="change-b3479ae6d58bd0ac59439c4b81428d3e"></span>added an IOError catch for source file not found in RichTraceback
exception reporter<a class="changeset-link headerlink reference internal" href="#change-b3479ae6d58bd0ac59439c4b81428d3e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/51/">#51</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.8">
<h3>0.1.8<a class="headerlink" href="#change-0.1.8" title="Permalink to this headline"></a></h3>
Released: Tue Jun 26 2007<ul class="simple">
<li><p id="change-0.1.8-0"><span class="target" id="change-bbc10b00b2959f71e6703161fe1a45a1"></span>variable names declared in render methods by internal
codegen prefixed by &#8220;__M_&#8221; to prevent name collisions
with user code<a class="changeset-link headerlink reference internal" href="#change-bbc10b00b2959f71e6703161fe1a45a1"></a><p></p>
</p>
</li>
<li><p id="change-0.1.8-1"><span class="target" id="change-12a94b4bec51562504cc0951143d7b14"></span>added a Babel (<a class="reference external" href="http://babel.edgewall.org/">http://babel.edgewall.org/</a>) extractor entry
point, allowing extraction of gettext messages directly from
mako templates via Babel<a class="changeset-link headerlink reference internal" href="#change-12a94b4bec51562504cc0951143d7b14"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/45/">#45</a></p>
</p>
</li>
<li><p id="change-0.1.8-2"><span class="target" id="change-ff313c4aec5d1b008cf8253396b514d6"></span>fix to turbogears plugin to work with dot-separated names
(i.e. load_template(&#8216;foo.bar&#8217;)).  also takes file extension
as a keyword argument (default is &#8216;mak&#8217;).<a class="changeset-link headerlink reference internal" href="#change-ff313c4aec5d1b008cf8253396b514d6"></a><p></p>
</p>
</li>
<li><p id="change-0.1.8-3"><span class="target" id="change-7f4b2edc94747c2be57aebfd1f725cf9"></span>more tg fix:  fixed, allowing string-based
templates with tgplugin even if non-compatible args were sent<a class="changeset-link headerlink reference internal" href="#change-7f4b2edc94747c2be57aebfd1f725cf9"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/35/">#35</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.7">
<h3>0.1.7<a class="headerlink" href="#change-0.1.7" title="Permalink to this headline"></a></h3>
Released: Wed Jun 13 2007<ul class="simple">
<li><p id="change-0.1.7-0"><span class="target" id="change-f9d399621cbe00065331cffcfd726aaf"></span>one small fix to the unit tests to support python 2.3<a class="changeset-link headerlink reference internal" href="#change-f9d399621cbe00065331cffcfd726aaf"></a><p></p>
</p>
</li>
<li><p id="change-0.1.7-1"><span class="target" id="change-d54e6f740ac7e3c9302f434352c6ad24"></span>a slight hack to how cache.py detects Beaker&#8217;s memcached,
works around unexplained import behavior observed on some
python 2.3 installations<a class="changeset-link headerlink reference internal" href="#change-d54e6f740ac7e3c9302f434352c6ad24"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.6">
<h3>0.1.6<a class="headerlink" href="#change-0.1.6" title="Permalink to this headline"></a></h3>
Released: Fri May 18 2007<ul class="simple">
<li><p id="change-0.1.6-0"><span class="target" id="change-52836ef58904a858efff55a21272a3aa"></span>caching is now supplied directly by Beaker, which has
all of MyghtyUtils merged into it now.  The latest Beaker
(0.7.1) also fixes a bug related to how Mako was using the
cache API.<a class="changeset-link headerlink reference internal" href="#change-52836ef58904a858efff55a21272a3aa"></a><p></p>
</p>
</li>
<li><p id="change-0.1.6-1"><span class="target" id="change-7bc90d84523c2290a3350c133e269c20"></span>fix to module_directory path generation when the path is &#8221;./&#8221;<a class="changeset-link headerlink reference internal" href="#change-7bc90d84523c2290a3350c133e269c20"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/34/">#34</a></p>
</p>
</li>
<li><p id="change-0.1.6-2"><span class="target" id="change-ea6d95d606ab7dd8f3b3f8b49bc0ca99"></span>TGPlugin passes options to string-based templates<a class="changeset-link headerlink reference internal" href="#change-ea6d95d606ab7dd8f3b3f8b49bc0ca99"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/35/">#35</a></p>
</p>
</li>
<li><p id="change-0.1.6-3"><span class="target" id="change-31e1248422bcd0c78c13b47b458a9085"></span>added an explicit stack frame step to template runtime, which
allows much simpler and hopefully bug-free tracking of &#8216;caller&#8217;,
fixes<a class="changeset-link headerlink reference internal" href="#change-31e1248422bcd0c78c13b47b458a9085"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/28/">#28</a></p>
</p>
</li>
<li><p id="change-0.1.6-4"><span class="target" id="change-54a970a9cf864a6c262da7b7d9216109"></span>if plain Python defs are used with &lt;%call&gt;, a decorator
&#64;runtime.supports_callable exists to ensure that the &#8220;caller&#8221;
stack is properly handled for the def.<a class="changeset-link headerlink reference internal" href="#change-54a970a9cf864a6c262da7b7d9216109"></a><p></p>
</p>
</li>
<li><p id="change-0.1.6-5"><span class="target" id="change-d2cd0326db0e6586eabcce097caf31ff"></span>fix to RichTraceback and exception reporting to get template
source code as a unicode object<a class="changeset-link headerlink reference internal" href="#change-d2cd0326db0e6586eabcce097caf31ff"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/37/">#37</a></p>
</p>
</li>
<li><p id="change-0.1.6-6"><span class="target" id="change-dc0199630744815964c1e6174ea78785"></span>html_error_template includes options &#8220;full=True&#8221;, &#8220;css=True&#8221;
which control generation of HTML tags, CSS<a class="changeset-link headerlink reference internal" href="#change-dc0199630744815964c1e6174ea78785"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/39/">#39</a></p>
</p>
</li>
<li><p id="change-0.1.6-7"><span class="target" id="change-b0a96b76069cee8cd44ba31774b27fa2"></span>added the &#8216;encoding_errors&#8217; parameter to Template/TemplateLookup
for specifying the error handler associated with encoding to
&#8216;output_encoding&#8217;<a class="changeset-link headerlink reference internal" href="#change-b0a96b76069cee8cd44ba31774b27fa2"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/40/">#40</a></p>
</p>
</li>
<li><p id="change-0.1.6-8"><span class="target" id="change-528e7eeb36e454ad6679969c443b951c"></span>the Template returned by html_error_template now defaults to
output_encoding=sys.getdefaultencoding(),
encoding_errors=&#8217;htmlentityreplace&#8217;<a class="changeset-link headerlink reference internal" href="#change-528e7eeb36e454ad6679969c443b951c"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/37/">#37</a></p>
</p>
</li>
<li><p id="change-0.1.6-9"><span class="target" id="change-87df4540a9078340f98f18122437d6dd"></span>control lines, i.e. % lines, support backslashes to continue long
lines (#32)<a class="changeset-link headerlink reference internal" href="#change-87df4540a9078340f98f18122437d6dd"></a><p></p>
</p>
</li>
<li><p id="change-0.1.6-10"><span class="target" id="change-5a582713c17cb4654879f3adb098f00f"></span>fixed codegen bug when defining &lt;%def&gt; within &lt;%call&gt; within &lt;%call&gt;<a class="changeset-link headerlink reference internal" href="#change-5a582713c17cb4654879f3adb098f00f"></a><p></p>
</p>
</li>
<li><p id="change-0.1.6-11"><span class="target" id="change-e80dc8f529838d0f39320706a515d3fa"></span>leading utf-8 BOM in template files is honored according to pep-0263<a class="changeset-link headerlink reference internal" href="#change-e80dc8f529838d0f39320706a515d3fa"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.5">
<h3>0.1.5<a class="headerlink" href="#change-0.1.5" title="Permalink to this headline"></a></h3>
Released: Sat Mar 31 2007<ul class="simple">
<li><p id="change-0.1.5-0"><span class="target" id="change-f55f1eaaa360047ad0dbf07496beae9c"></span>AST expression generation - added in just about everything
expression-wise from the AST module<a class="changeset-link headerlink reference internal" href="#change-f55f1eaaa360047ad0dbf07496beae9c"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/26/">#26</a></p>
</p>
</li>
<li><p id="change-0.1.5-1"><span class="target" id="change-038f363f37ffb6f6e1d81aaeb32d371d"></span>AST parsing, properly detects imports of the form &#8220;import foo.bar&#8221;<a class="changeset-link headerlink reference internal" href="#change-038f363f37ffb6f6e1d81aaeb32d371d"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/27/">#27</a></p>
</p>
</li>
<li><p id="change-0.1.5-2"><span class="target" id="change-fe4577a3f1111e2f31098302811ed765"></span>fix to lexing of &lt;%docs&gt; tag nested in other tags<a class="changeset-link headerlink reference internal" href="#change-fe4577a3f1111e2f31098302811ed765"></a><p></p>
</p>
</li>
<li><p id="change-0.1.5-3"><span class="target" id="change-895781e7f1f9e56da8e1f7d84a2d75e8"></span>fix to context-arguments inside of &lt;%include&gt; tag which broke
during 0.1.4<a class="changeset-link headerlink reference internal" href="#change-895781e7f1f9e56da8e1f7d84a2d75e8"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/29/">#29</a></p>
</p>
</li>
<li><p id="change-0.1.5-4"><span class="target" id="change-f4a4e7c2e333277389fa0febf1b94548"></span>added &#8220;n&#8221; filter, disables <em>all</em> filters normally applied to an expression
via &lt;%page&gt; or default_filters (but not those within the filter)<a class="changeset-link headerlink reference internal" href="#change-f4a4e7c2e333277389fa0febf1b94548"></a><p></p>
</p>
</li>
<li><p id="change-0.1.5-5"><span class="target" id="change-1373f4756af28d08dc3d0c42b55ba89f"></span>added buffer_filters argument, defines filters applied to the return value
of buffered/cached/filtered %defs, after all filters defined with the %def
itself have been applied.  allows the creation of default expression filters
that let the output of return-valued %defs &#8220;opt out&#8221; of that filtering
via passing special attributes or objects.<a class="changeset-link headerlink reference internal" href="#change-1373f4756af28d08dc3d0c42b55ba89f"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.4">
<h3>0.1.4<a class="headerlink" href="#change-0.1.4" title="Permalink to this headline"></a></h3>
Released: Sat Mar 10 2007<ul class="simple">
<li><p id="change-0.1.4-0"><span class="target" id="change-d9a3f08eba0431ad7fcc2c4a44ebbae6"></span>got defs-within-defs to be cacheable<a class="changeset-link headerlink reference internal" href="#change-d9a3f08eba0431ad7fcc2c4a44ebbae6"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-1"><span class="target" id="change-810513a0fe251b003785e47c73c05d6b"></span>fixes to code parsing/whitespace adjusting where plain python comments
may contain quote characters<a class="changeset-link headerlink reference internal" href="#change-810513a0fe251b003785e47c73c05d6b"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/23/">#23</a></p>
</p>
</li>
<li><p id="change-0.1.4-2"><span class="target" id="change-02205b506bd613a4038f90d3894ff1e4"></span>fix to variable scoping for identifiers only referenced within
functions<a class="changeset-link headerlink reference internal" href="#change-02205b506bd613a4038f90d3894ff1e4"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-3"><span class="target" id="change-dffdf2c7b62fa47b54cac838b32b5a15"></span>added a path normalization step to lookup so URIs like
&#8220;/foo/bar/../etc/../foo&#8221; pre-process the &#8221;..&#8221; tokens before checking
the filesystem<a class="changeset-link headerlink reference internal" href="#change-dffdf2c7b62fa47b54cac838b32b5a15"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-4"><span class="target" id="change-2a6fb9feefccb0dc5a6a53f4a1145389"></span>fixed/improved &#8220;caller&#8221; semantics so that undefined caller is
&#8220;UNDEFINED&#8221;, propigates __nonzero__ method so it evaulates to False if
not present, True otherwise. this way you can say % if caller:n
${caller.body()}n% endif<a class="changeset-link headerlink reference internal" href="#change-2a6fb9feefccb0dc5a6a53f4a1145389"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-5"><span class="target" id="change-7969cae88e43d5ccd928a0e231e9d242"></span>&lt;%include&gt; has an &#8220;args&#8221; attribute that can pass arguments to the
called template (keyword arguments only, must be declared in that
page&#8217;s &lt;%page&gt; tag.)<a class="changeset-link headerlink reference internal" href="#change-7969cae88e43d5ccd928a0e231e9d242"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-6"><span class="target" id="change-4b7deb2ea46de8d9db7b502ced7728dd"></span>&lt;%include&gt; plus arguments is also programmatically available via
self.include_file(&lt;filename&gt;, <a href="#id9"><span class="problematic" id="id10">**</span></a>kwargs)<a class="changeset-link headerlink reference internal" href="#change-4b7deb2ea46de8d9db7b502ced7728dd"></a><p></p>
</p>
</li>
<li><p id="change-0.1.4-7"><span class="target" id="change-5e3d31c7ecde9769cc0daf0a545e50da"></span>further escaping added for multibyte expressions in %def, %call
attributes<a class="changeset-link headerlink reference internal" href="#change-5e3d31c7ecde9769cc0daf0a545e50da"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/24/">#24</a></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.3">
<h3>0.1.3<a class="headerlink" href="#change-0.1.3" title="Permalink to this headline"></a></h3>
Released: Wed Feb 21 2007<ul class="simple">
<li><p id="change-0.1.3-0"><span class="target" id="change-18db551453b5679b3f20ea5bdb7bdc52"></span><strong>*Small Syntax Change*</strong> - the single line comment character is now
<em>two</em> hash signs, i.e. &#8220;## this is a comment&#8221;.  This avoids a common
collection with CSS selectors.<a class="changeset-link headerlink reference internal" href="#change-18db551453b5679b3f20ea5bdb7bdc52"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-1"><span class="target" id="change-e30c3dbf8c63dae51878e95465b46c4b"></span>the magic &#8220;coding&#8221; comment (i.e. # coding:utf-8) will still work with
either one &#8220;#&#8221; sign or two for now; two is preferred going forward, i.e.
## coding:&lt;someencoding&gt;.<a class="changeset-link headerlink reference internal" href="#change-e30c3dbf8c63dae51878e95465b46c4b"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-2"><span class="target" id="change-722a3aa892f188f6c474fbe157b52980"></span>new multiline comment form: &#8220;&lt;%doc&gt; a comment &lt;/%doc&gt;&#8221;<a class="changeset-link headerlink reference internal" href="#change-722a3aa892f188f6c474fbe157b52980"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-3"><span class="target" id="change-d38fba282e33819ce79a8f8f93bfd42c"></span>UNDEFINED evaluates to False<a class="changeset-link headerlink reference internal" href="#change-d38fba282e33819ce79a8f8f93bfd42c"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-4"><span class="target" id="change-921044895d61328452e3a335bad34172"></span>improvement to scoping of &#8220;caller&#8221; variable when using &lt;%call&gt; tag<a class="changeset-link headerlink reference internal" href="#change-921044895d61328452e3a335bad34172"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-5"><span class="target" id="change-8be7ad08f79e900b80f8c291c23e7fe1"></span>added lexer error for unclosed control-line (%) line<a class="changeset-link headerlink reference internal" href="#change-8be7ad08f79e900b80f8c291c23e7fe1"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-6"><span class="target" id="change-85b846c5476142b1c2506c5a32d50817"></span>added &#8220;preprocessor&#8221; argument to Template, TemplateLookup - is a single
callable or list of callables which will be applied to the template text
before lexing.  given the text as an argument, returns the new text.<a class="changeset-link headerlink reference internal" href="#change-85b846c5476142b1c2506c5a32d50817"></a><p></p>
</p>
</li>
<li><p id="change-0.1.3-7"><span class="target" id="change-43d0af8d5e881c09c61799065df23349"></span>added mako.ext.preprocessors package, contains one preprocessor so far:
&#8216;convert_comments&#8217;, which will convert single # comments to the new ##
format<a class="changeset-link headerlink reference internal" href="#change-43d0af8d5e881c09c61799065df23349"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.2">
<h3>0.1.2<a class="headerlink" href="#change-0.1.2" title="Permalink to this headline"></a></h3>
Released: Thu Feb  1 2007<ul class="simple">
<li><p id="change-0.1.2-0"><span class="target" id="change-e5e97c09505aa0d25c29ce1e158d4a8f"></span>fix to parsing of code/expression blocks to insure that non-ascii
characters, combined with a template that indicates a non-standard
encoding, are expanded into backslash-escaped glyphs before being AST
parsed<a class="changeset-link headerlink reference internal" href="#change-e5e97c09505aa0d25c29ce1e158d4a8f"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/11/">#11</a></p>
</p>
</li>
<li><p id="change-0.1.2-1"><span class="target" id="change-3ff8d6c650379a6f712a25b5d9f0f67f"></span>all template lexing converts the template to unicode first, to
immediately catch any encoding issues and ensure internal unicode
representation.<a class="changeset-link headerlink reference internal" href="#change-3ff8d6c650379a6f712a25b5d9f0f67f"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-2"><span class="target" id="change-0b29735786156418071800fe54aa64cd"></span>added module_filename argument to Template to allow specification of a
specific module file<a class="changeset-link headerlink reference internal" href="#change-0b29735786156418071800fe54aa64cd"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-3"><span class="target" id="change-6904da36fbdded623dc4b3ee751d5674"></span>added modulename_callable to TemplateLookup to allow a function to
determine module filenames (takes filename, uri arguments). used for<a class="changeset-link headerlink reference internal" href="#change-6904da36fbdded623dc4b3ee751d5674"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/14/">#14</a></p>
</p>
</li>
<li><p id="change-0.1.2-4"><span class="target" id="change-ecf4eb2962f40391b75f8ce8f2a94a08"></span>added optional input_encoding flag to Template, to allow sending a
unicode() object with no magic encoding comment<a class="changeset-link headerlink reference internal" href="#change-ecf4eb2962f40391b75f8ce8f2a94a08"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-5"><span class="target" id="change-5ea31cc5e58c79c774aaa9458928f827"></span>&#8220;expression_filter&#8221; argument in &lt;%page&gt; applies only to expressions<a class="changeset-link headerlink reference internal" href="#change-5ea31cc5e58c79c774aaa9458928f827"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-6"><span class="target" id="change-84beefcbcdc568675b6e3fefd7940957"><strong>[&#8220;unicode&#8221;] </strong></span>added &#8220;default_filters&#8221; argument to Template, TemplateLookup. applies only
to expressions, gets prepended to &#8220;expression_filter&#8221; arg from &lt;%page&gt;.
defaults to, so that all expressions get stringified into u&#8217;&#8217;
by default (this is what Mako already does). By setting to [], expressions
are passed through raw.<a class="changeset-link headerlink reference internal" href="#change-84beefcbcdc568675b6e3fefd7940957"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-7"><span class="target" id="change-fd580f1d839dc719fa1f0563b46ba474"></span>added &#8220;imports&#8221; argument to Template, TemplateLookup. so you can predefine
a list of import statements at the top of the template. can be used in
conjunction with default_filters.<a class="changeset-link headerlink reference internal" href="#change-fd580f1d839dc719fa1f0563b46ba474"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-8"><span class="target" id="change-817d592b540ba64129e24055c5f8ec27"></span>support for CRLF templates...whoops ! welcome to all the windows users.<a class="changeset-link headerlink reference internal" href="#change-817d592b540ba64129e24055c5f8ec27"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/16/">#16</a></p>
</p>
</li>
<li><p id="change-0.1.2-9"><span class="target" id="change-5976a1e5691f501b38fc485209ec52a1"></span>small fix to local variable propigation for locals that are conditionally
declared<a class="changeset-link headerlink reference internal" href="#change-5976a1e5691f501b38fc485209ec52a1"></a><p></p>
</p>
</li>
<li><p id="change-0.1.2-10"><span class="target" id="change-e51de8d14422e4b2b7fb4d583f5fb5f3"></span>got &#8220;top level&#8221; def calls to work, i.e. template.get_def(&#8220;somedef&#8221;).render()<a class="changeset-link headerlink reference internal" href="#change-e51de8d14422e4b2b7fb4d583f5fb5f3"></a><p></p>
</p>
</li>
</ul>
</div>
<div class="section" id="change-0.1.1">
<h3>0.1.1<a class="headerlink" href="#change-0.1.1" title="Permalink to this headline"></a></h3>
Released: Sun Jan 14 2007<ul class="simple">
<li><p id="change-0.1.1-0"><span class="target" id="change-05b7c1f3eb0cb4630b5ebbd1a172f5d5"></span>buffet plugin supports string-based templates, allows ToscaWidgets to work<a class="changeset-link headerlink reference internal" href="#change-05b7c1f3eb0cb4630b5ebbd1a172f5d5"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/8/">#8</a></p>
</p>
</li>
<li><p id="change-0.1.1-1"><span class="target" id="change-20940aacb7e79ba6e20a4826ed237c0b"></span>AST parsing fixes: fixed TryExcept identifier parsing<a class="changeset-link headerlink reference internal" href="#change-20940aacb7e79ba6e20a4826ed237c0b"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-2"><span class="target" id="change-eb9efa2f093687fd2d4f5f7ac4e51c3c"></span>removed textmate tmbundle from contrib and into separate SVN location;
windows users cant handle those files, setuptools not very good at
&#8220;pruning&#8221; certain directories<a class="changeset-link headerlink reference internal" href="#change-eb9efa2f093687fd2d4f5f7ac4e51c3c"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-3"><span class="target" id="change-e1142489a6eb32082650995d95b37a71"></span>fix so that &#8220;cache_timeout&#8221; parameter is propigated<a class="changeset-link headerlink reference internal" href="#change-e1142489a6eb32082650995d95b37a71"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-4"><span class="target" id="change-603cfb5b4987686ea04bebe62aa32b24"></span>fix to expression filters so that string conversion (actually unicode)
properly occurs before filtering<a class="changeset-link headerlink reference internal" href="#change-603cfb5b4987686ea04bebe62aa32b24"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-5"><span class="target" id="change-b07fbe08a504a4fa5f2d9827be99693a"></span>better error message when a lookup is attempted with a template that has no
lookup<a class="changeset-link headerlink reference internal" href="#change-b07fbe08a504a4fa5f2d9827be99693a"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-6"><span class="target" id="change-bf10710d0a3d4e00b23e4c12739df8d8"></span>implemented &#8220;module&#8221; attribute for namespace<a class="changeset-link headerlink reference internal" href="#change-bf10710d0a3d4e00b23e4c12739df8d8"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-7"><span class="target" id="change-d2a20975eda94230da878d7b2bc53081"></span>fix to code generation to correctly track multiple defs with the same name<a class="changeset-link headerlink reference internal" href="#change-d2a20975eda94230da878d7b2bc53081"></a><p></p>
</p>
</li>
<li><p id="change-0.1.1-8"><span class="target" id="change-8e234744095c72fc80b927b7a27b3d4e"></span>&#8220;directories&#8221; can be passed to TemplateLookup as a scalar in which case it
gets converted to a list<a class="changeset-link headerlink reference internal" href="#change-8e234744095c72fc80b927b7a27b3d4e"></a><p>References: <a class="reference external" href="https://bitbucket.org/zzzeek/mako/issue/9/">#9</a></p>
</p>
</li>
</ul>
</div>
</div>
</div>

    </div>

</div>

<div id="docs-bottom-navigation" class="docs-navigation-links">
        Previous:
        <a href="caching.html" title="previous chapter">Caching</a>

    <div id="docs-copyright">
        &copy; Copyright the Mako authors and contributors.
        Documentation generated using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.2b1
        with Mako templates.
    </div>
</div>

</div>

<div class="clearfix">

<hr/>

<div class="copyright">Website content copyright &copy; by Michael Bayer.
    All rights reserved.  Mako and its documentation are licensed
    under the MIT license.  mike(&)zzzcomputing.com</div>

</div>
</div>
</body>
</html>