リピート領域やオプション領域をデザインビューで扱う方法はマクロメディアのサイトを見ると分かりますが、手書きのテンプレート式では具体的にどのくらいの応用が利くのか、意外と情報が少ないです。テンプレート式はコードビューで手書きで書くのが便利だと思います。構文に関してはエクマスクリプト(JavaScript)準拠だとのことです。
CodeColoring.xmlの中身にいろいろありました。
編集可能領域 | <!-- TemplateBeginEditable name="xxxxx" --> <!-- TemplateEndEditable --> |
テンプレート プロパティ |
<!-- TemplateParam name="xxx" type="xxx" value="xxx" --> |
リピート領域 | <!-- TemplateBeginRepeat name="xxxxx" --> <!-- TemplateEndRepeat --> |
オプション領域 | <!-- TemplateBeginIf cond="xxxxx" --> <!-- TemplateEndIf --> |
通過オプション 領域 |
<!-- TemplateBeginPassthroughIf cond="xxxxx" --> <!-- TemplateEndPassthroughIf --> |
マルチプル オプション領域 |
<!-- TemplateBeginMultipleIf --> <!-- TemplateEndMultipleIf --> |
通過マルチプル オプション領域 |
<!-- TemplateBeginPassthroughMultipleIf --> <!-- TemplateEndPassthroughMultipleIf --> |
マルチプル オプション 領域選択肢 |
<!-- TemplateBeginIfClause cond="xxxxx"--> <!-- TemplateEndIfClause--> |
通過マルチプル オプション 領域選択肢 |
<!-- TemplateBeginPassthroughIfClause cond="xxxxx" --> <!-- TemplateEndPassthroughIfClause --> |
テンプレート式 | <!-- TemplateExpr:expr = "xxxxx"--> |
通過マルチプル オプション領域 テンプレート式 |
<!-- TemplatePassthroughExpr expr="xxxxx" --> |
テンプレート情報 | <!-- TemplateInfo codeOutsideHTMLIsLocked="xxxxx" --> |
参考リンク