Knowledge

Template Attribute Language

Source 📝

74: 184: 33: 553:
In cases when no tag is present which lends itself to take the attributes, and in special cases when more than one METAL attribute is needed, special METAL tags can be used, making the „metal:“ prefix optional. E. g. (sketched with
322:
pages. Its main goal is to simplify the collaboration between programmers and designers. This is achieved by embedding TAL statements inside valid HTML (or XML) tags which can then be worked on using common design tools.
457:
value, e.g. a list containing at least one element. The identifier following the colon is arbitrary; it simply needs to be there, and to be the same for the opening and closing tag.
95: 46: 208:
of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be
260: 146: 232: 118: 449:
tags to be used whenever the context (whatever the application server defines the context to be, e.g. an object) contains variable "
297: 279: 165: 60: 239: 125: 52: 480:
METAL complements TAL with the ability to reuse code. It allows the developer to define and use macros, which in turn may have
246: 132: 99: 474: 331: 205: 228: 114: 835: 798: 418:
In cases when no tag is present which lends itself to take the attributes, special TAL tags can be used, making the "
201: 939: 217: 543: 466: 369:
creates a loop variable and repeats the tag iterating a sequence, e.g. for creating a selection list or a table
84: 700: 555: 103: 88: 392: 253: 139: 194: 737: 731: 415:
If a tag has more than one TAL attributes, they are evaluated in the above (fairly logical) order.
405:
allows to omit the start and end tag and only render the content if the given expression is true.
213: 918: 209: 17: 934: 928: 465:
The Macro Expansion Template Attribute Language (METAL) complements TAL, providing
354: 381:
replaces the tag (and therefore is not usable together with content or attributes)
885: 73: 391:
the name and id attributes of an input field could be set to the value of the
900: 469:
which allow the reuse of code across template files. Both were created for
769: 484:; when using a macro, variational content can be specified for a slot. 903:- Not a TAL implementation, but a similar "natural template" language 773: 897:
ATal – Not really a TAL implementation, but inspired on TAL concepts
532:
when using a macro, replaces the default content of the given slot
363:
decides whether or not to render the tag (and all contained text)
200:
Please help to demonstrate the notability of the topic by citing
872: 868: 818: 712: 694: 539: 470: 327: 315: 884:
TALCL: A library that implements the TAL template language for
503:
The following attributes are recognised, normally requiring a „
488: 411:
if an error occurs, this attribute works like the content tag.
319: 177: 67: 26: 838:
implementation of TAL, with some Petal and PHPTAL extensions.
526:
uses a macro (normally given via a TALES path expression)
342:
The following attributes are used, normally prefixed by "
314:(TAL) is a templating language used to generate dynamic 759:
tal, a native Go implementation of TAL, TALES and METAL
690:
TAL/TALES/METAL are used by the following projects:
357:
bearing the attribute (including contained elements)
493:xmlns:metal="http://xml.zope.org/namespaces/metal" 491:documents, the XML namespace must be specified ( 550:Normally, just one of those is used at a time. 387:replaces the given attributes (e. g. by using 8: 715:implementation, there are (not exhaustive): 102:. Unsourced material may be challenged and 61:Learn how and when to remove these messages 298:Learn how and when to remove this message 280:Learn how and when to remove this message 166:Learn how and when to remove this message 622:"templates/page/macros/icing" 736:Chameleon, a fast reimplementation of 353:creates local variables, valid in the 658:"action context/designator" 7: 100:adding citations to reliable sources 542:v3: extends a macro, comparable to 389:tal:attributes="name name; id name" 25: 42:This article has multiple issues. 445:would cause the code inside the 182: 72: 31: 375:replaces the content of the tag 50:or discuss these issues on the 1: 919:Zope Page Templates Reference 867:XSLTal, transforming TAL via 730:ZPT, a standalone version of 520:creates a slot inside a macro 229:"Template Attribute Language" 115:"Template Attribute Language" 433:"context/itemlist" 195:general notability guideline 821:Template Attribute Language 312:Template Attribute Language 956: 202:reliable secondary sources 191:The topic of this article 772:, TAL Implementation for 640:"optional-form" 594:"optional-form" 422:" prefix optional. e.g.: 334:-based projects as well. 193:may not meet Knowledge's 697:(web application server) 560: 546:, by redefining of slots 424: 892:Similar implementations 701:Roundup (issue tracker) 473:but are used in other 18:Tag Attribute Language 711:Besides the original 707:Other implementations 330:but is used in other 326:TAL was created for 96:improve this article 738:Zope Page Templates 732:Zope Page Templates 569:metal:define-macro 477:projects as well. 197: 575:"icing" 308: 307: 300: 290: 289: 282: 264: 192: 176: 175: 168: 150: 65: 16:(Redirected from 947: 940:Template engines 681: 678: 675: 672: 669: 666: 662: 659: 656: 653: 650: 647: 644: 641: 638: 635: 632: 629: 626: 623: 620: 617: 614: 611: 608: 605: 602: 598: 595: 592: 589: 586: 583: 579: 576: 573: 570: 567: 564: 506: 499:METAL attributes 494: 487:When generating 452: 448: 441: 437: 434: 431: 428: 421: 398: 390: 345: 303: 296: 285: 278: 274: 271: 265: 263: 222: 186: 185: 178: 171: 164: 160: 157: 151: 149: 108: 76: 68: 57: 35: 34: 27: 21: 955: 954: 950: 949: 948: 946: 945: 944: 925: 924: 915: 910: 894: 881: 864: 845: 831: 814: 794: 766: 756: 746: 721: 709: 688: 683: 682: 679: 676: 673: 670: 667: 664: 660: 657: 654: 651: 648: 645: 642: 639: 636: 634:metal:fill-slot 633: 630: 627: 624: 621: 618: 616:metal:use-macro 615: 612: 609: 606: 603: 600: 596: 593: 590: 587: 584: 581: 577: 574: 571: 568: 565: 562: 514:creates a macro 504: 501: 492: 463: 450: 446: 443: 442: 440:</tal:if> 439: 435: 432: 429: 426: 419: 396: 388: 343: 340: 304: 293: 292: 291: 286: 275: 269: 266: 223: 221: 199: 187: 183: 172: 161: 155: 152: 109: 107: 93: 77: 36: 32: 23: 22: 15: 12: 11: 5: 953: 951: 943: 942: 937: 927: 926: 923: 922: 914: 913:External links 911: 909: 906: 905: 904: 898: 893: 890: 889: 888: 880: 877: 876: 875: 863: 860: 859: 858: 855: 852: 849: 844: 841: 840: 839: 830: 827: 826: 825: 822: 813: 810: 809: 808: 805: 802: 801:Page Templates 793: 790: 789: 788: 785: 782: 779: 776: 765: 762: 761: 760: 755: 752: 751: 750: 745: 742: 741: 740: 734: 728: 725: 720: 717: 708: 705: 704: 703: 698: 687: 684: 652:tal:attributes 561: 548: 547: 536: 533: 530: 527: 524: 521: 518: 515: 512: 500: 497: 462: 459: 425: 413: 412: 409: 406: 403: 400: 385: 382: 379: 376: 373: 370: 367: 364: 361: 358: 351: 339: 336: 306: 305: 288: 287: 190: 188: 181: 174: 173: 80: 78: 71: 66: 40: 39: 37: 30: 24: 14: 13: 10: 9: 6: 4: 3: 2: 952: 941: 938: 936: 933: 932: 930: 920: 917: 916: 912: 907: 902: 899: 896: 895: 891: 887: 883: 882: 878: 874: 870: 866: 865: 861: 856: 853: 850: 847: 846: 842: 837: 833: 832: 828: 823: 820: 816: 815: 811: 806: 803: 800: 796: 795: 791: 786: 783: 780: 777: 775: 771: 768: 767: 763: 758: 757: 753: 748: 747: 743: 739: 735: 733: 729: 726: 723: 722: 718: 716: 714: 706: 702: 699: 696: 693: 692: 691: 685: 649:"." 559: 557: 551: 545: 541: 537: 534: 531: 528: 525: 522: 519: 516: 513: 510: 509: 508: 498: 496: 490: 485: 483: 478: 476: 472: 468: 460: 458: 456: 423: 416: 410: 407: 404: 401: 394: 386: 383: 380: 377: 374: 371: 368: 365: 362: 359: 356: 352: 349: 348: 347: 337: 335: 333: 329: 324: 321: 317: 313: 302: 299: 284: 281: 273: 262: 259: 255: 252: 248: 245: 241: 238: 234: 231: –  230: 226: 225:Find sources: 219: 215: 211: 207: 203: 196: 189: 180: 179: 170: 167: 159: 148: 145: 141: 138: 134: 131: 127: 124: 120: 117: –  116: 112: 111:Find sources: 105: 101: 97: 91: 90: 86: 81:This article 79: 75: 70: 69: 64: 62: 55: 54: 49: 48: 43: 38: 29: 28: 19: 824:Template-TAL 770:template-tal 710: 689: 585:metal:myslot 552: 549: 535:extend-macro 511:define-macro 502: 486: 481: 479: 464: 454: 444: 417: 414: 341: 325: 311: 309: 294: 276: 270:January 2012 267: 257: 250: 243: 236: 224: 162: 156:January 2012 153: 143: 136: 129: 122: 110: 94:Please help 82: 58: 51: 45: 44:Please help 41: 921:(Zope Book) 886:common lisp 879:Common Lisp 817:PETAL, the 754:Go (Golang) 588:define-slot 544:subclassing 517:define-slot 206:independent 929:Categories 908:References 834:Flower, a 764:JavaScript 558:in mind): 507:“ prefix: 430:condition= 427:<tal:if 384:attributes 338:Attributes 240:newspapers 214:redirected 126:newspapers 47:improve it 901:Thymeleaf 724:SimpleTAL 529:fill-slot 523:use-macro 453:" with a 360:condition 204:that are 83:does not 53:talk page 807:ZPT-Java 749:SharpTAL 451:itemlist 408:on-error 402:omit-tag 393:variable 854:Biscuit 804:JavaZPT 727:OpenTAL 556:Roundup 378:replace 372:content 355:element 254:scholar 218:deleted 140:scholar 104:removed 89:sources 851:Twital 848:PHPTAL 787:ZPT-JS 784:DomTal 781:Distal 774:NodeJs 719:Python 643:action 538:since 505:metal: 475:Python 467:macros 447:tal:if 366:repeat 350:define 332:Python 256:  249:  242:  235:  227:  210:merged 142:  135:  128:  121:  113:  797:JPT: 778:jstal 686:Usage 674:</ 665:</ 663:... 601:</ 599:... 580:... 482:slots 461:METAL 261:JSTOR 247:books 216:, or 147:JSTOR 133:books 935:Zope 873:XSLT 869:XSLT 857:zTAL 836:Raku 829:Raku 819:Perl 812:Perl 799:Java 792:Java 713:Zope 695:Zope 680:> 677:html 671:> 668:form 661:> 631:form 628:< 625:> 613:html 610:< 607:> 604:html 597:> 582:< 578:> 566:html 563:< 540:Zope 471:Zope 455:true 438:... 436:> 420:tal: 397:name 344:tal: 328:Zope 318:and 316:HTML 310:The 233:news 119:news 87:any 85:cite 871:to 862:XSL 843:PHP 495:). 489:XML 346:": 320:XML 98:by 931:: 744:C# 399:") 212:, 56:. 655:= 646:= 637:= 619:= 591:= 572:= 395:" 301:) 295:( 283:) 277:( 272:) 268:( 258:· 251:· 244:· 237:· 220:. 198:. 169:) 163:( 158:) 154:( 144:· 137:· 130:· 123:· 106:. 92:. 63:) 59:( 20:)

Index

Tag Attribute Language
improve it
talk page
Learn how and when to remove these messages

cite
sources
improve this article
adding citations to reliable sources
removed
"Template Attribute Language"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
general notability guideline
reliable secondary sources
independent
merged
redirected
deleted
"Template Attribute Language"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.