Dreamweaver uses HTML comment tags to specify regions in templates and template-based documents, so template-based documents are still valid HTML files. When you insert a template object, template tags are inserted in the code.
General syntax rules are as follows:
Wherever a space appears, you can substitute any amount of white space (spaces, tabs, line breaks). The white space is mandatory except at the very beginning or end of a comment.
Attributes can be given in any order. For example, in a TemplateParam, you can specify the type before the name.
Comment and attribute names are case sensitive.
All attributes must be in quotation marks. Single or double quotes can be used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <!-- TemplateBeginEditable name= "..." --> <!-- TemplateEndEditable --> <!-- TemplateParam name= "..." type= "..." value= "..." --> <!-- TemplateBeginRepeat name= "..." --> <!-- TemplateEndRepeat --> <!-- TemplateBeginIf cond= "..." --> <!-- TemplateEndIf --> <!-- TemplateBeginPassthroughIf cond= "..." --> <!-- TemplateEndPassthroughIf --> <!-- TemplateBeginMultipleIf --> <!-- TemplateEndMultipleIf --> <!-- TemplateBeginPassthroughMultipleIf --> <!-- TemplateEndPassthroughMultipleIf --> <!-- TemplateBeginIfClause cond= "..." --> <!-- TemplateEndIfClause --> <!-- TemplateBeginPassthroughIfClause cond= "..." --> <!-- TemplateEndPassthroughIfClause --> <!-- TemplateExpr expr= "..." --> (equivalent to @@...@@) <!-- TemplatePassthroughExpr expr= "..." --> <!-- TemplateInfo codeOutsideHTMLIsLocked= "..." --> |
1 2 3 4 5 6 7 8 9 | <!-- InstanceBegin template= "..." codeOutsideHTMLIsLocked= "..." --> <!-- InstanceEnd --> <!-- InstanceBeginEditable name= "..." --> <!-- InstanceEndEditable --> <!-- InstanceParam name= "..." type= "..." value= "..." passthrough= "..." --> <!-- InstanceBeginRepeat name= "..." --> <!-- InstanceEndRepeat --> <!-- InstanceBeginRepeatEntry --> <!-- InstanceEndRepeatEntry --> |