Index: /branches/release-40/default_templates/notify-entry.mtml
===================================================================
--- /branches/release-40/default_templates/notify-entry.mtml (revision 1118)
+++ /branches/release-40/default_templates/notify-entry.mtml (revision 2603)
@@ -1,25 +1,25 @@
-<__trans phrase="A new [lc,_3] entitled '[_1]' has been published to [_2]." params="<$MTEntryTitle$>%%<$MTBlogName$>%%<$MTEntryClassLabel$>">
+<__trans phrase="A new [lc,_3] entitled '[_1]' has been published to [_2]." params="<$mt:EntryTitle$>%%<$mt:BlogName$>%%<$mt:EntryClassLabel$>">
 
-<mt:if name="object_type" eq="entry"><__trans phrase="View entry:"><mt:else><__trans phrase="View page:"></mt:if> <<mt:setvarblock name="entry_status"><$MTEntryStatus$></mt:setvarblock><mt:if name="entry_status" eq="Publish"><$MTEntryPermalink$><mt:else><mt:var name="entry_editurl"></mt:if>>
+<mt:If name="object_type" eq="entry"><__trans phrase="View entry:"><mt:Else><__trans phrase="View page:"></mt:If> <<mt:SetVarBlock name="entry_status"><$mt:EntryStatus$></mt:SetVarBlock><mt:If name="entry_status" eq="Publish"><$mt:EntryPermalink$><mt:Else><$mt:Var name="entry_editurl"$></mt:If>>
 
 ------------------------------------------------------------------------
-<__trans phrase="[_1] Title: [_2]" params="<$MTEntryClassLabel lower_case="1"$>%%<$MTEntryTitle$>">
-<__trans phrase="Publish Date: [_1]" params="<$MTEntryDate mail="1"$>">
-<mt:if name="send_excerpt">
+<__trans phrase="[_1] Title: [_2]" params="<$mt:EntryClassLabel lower_case="1"$>%%<$mt:EntryTitle$>">
+<__trans phrase="Publish Date: [_1]" params="<$mt:EntryDate mail="1"$>">
+<mt:If name="send_excerpt">
 
-<$MTEntryExcerpt wrap_text="72"$>
-</mt:if>
+<$mt:EntryExcerpt wrap_text="72"$>
+</mt:If>
 ------------------------------------------------------------------------
 
-<mt:if name="message"><__trans phrase="Message from Sender:">
-<mt:var name="message"></mt:if>
-<mt:if name="send_body">
+<mt:If name="message"><__trans phrase="Message from Sender:">
+<$mt:Var name="message"$></mt:If>
+<mt:If name="send_body">
 ------------------------------------------------------------------------
 
-<$MTEntryBody remove_html="1" wrap_text="72"$>
+<$mt:EntryBody remove_html="1" wrap_text="72"$>
 
-------------------------------------------------------------------------</mt:if>
+------------------------------------------------------------------------</mt:If>
 
-<__trans phrase="You are receiving this email either because you have elected to receive notifications about new content on [_1], or the author of the post thought you would be interested. If you no longer wish to receive these emails, please contact the following person:" params="<$MTBlogName$>">
+<__trans phrase="You are receiving this email either because you have elected to receive notifications about new content on [_1], or the author of the post thought you would be interested. If you no longer wish to receive these emails, please contact the following person:" params="<$mt:BlogName$>">
 
-<$MTAuthorDisplayName$> <<$MTAuthorEmail$>>
+<$mt:AuthorDisplayName$> <<$mt:AuthorEmail$>>
Index: /branches/release-40/default_templates/main_index.mtml
===================================================================
--- /branches/release-40/default_templates/main_index.mtml (revision 2312)
+++ /branches/release-40/default_templates/main_index.mtml (revision 2603)
@@ -3,14 +3,14 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$MTLink template="rsd"$>" />
-    <title><$MTBlogName encode_html="1"$></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<$mt:Link template="rsd"$>" />
+    <title><$mt:BlogName encode_html="1"$></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-main-index <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-main-index <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -21,12 +21,12 @@
                     <div id="alpha">
                         <div id="alpha-inner">
-<MTEntries>
-                            <mt:ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:ignore>
-                            <$mt:include module="<__trans phrase="Entry Summary">"$>
-</MTEntries>
+<mt:Entries>
+                            <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
+                            <$mt:Include module="<__trans phrase="Entry Summary">"$>
+</mt:Entries>
 
 
                             <div class="content-nav">
-                                <a href="<$MTLink template="archive_index"$>"><__trans phrase="Archives"></a>
+                                <a href="<$mt:Link template="archive_index"$>"><__trans phrase="Archives"></a>
                             </div>
 
@@ -36,5 +36,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -43,5 +43,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/page.mtml
===================================================================
--- /branches/release-40/default_templates/page.mtml (revision 2312)
+++ /branches/release-40/default_templates/page.mtml (revision 2603)
@@ -3,5 +3,5 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
     <$mt:EntryTrackbackData$>
     <title><$mt:PageTitle encode_html="1"$> - <$mt:BlogName encode_html="1"$></title>
@@ -12,5 +12,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -58,5 +58,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/main_index_widgets_group.mtml
===================================================================
--- /branches/release-40/default_templates/main_index_widgets_group.mtml (revision 2052)
+++ /branches/release-40/default_templates/main_index_widgets_group.mtml (revision 2603)
@@ -3,7 +3,7 @@
 </mt:Ignore>
 <mt:If name="main_index">
-    <$mt:include widget="<__trans phrase="Recent Comments">"$>
-    <$mt:include widget="<__trans phrase="Recent Entries">"$>
-    <$mt:include widget="<__trans phrase="Recent Assets">"$>
-    <$mt:include widget="<__trans phrase="Tag Cloud">"$>
+    <$mt:Include widget="<__trans phrase="Recent Comments">"$>
+    <$mt:Include widget="<__trans phrase="Recent Entries">"$>
+    <$mt:Include widget="<__trans phrase="Recent Assets">"$>
+    <$mt:Include widget="<__trans phrase="Tag Cloud">"$>
 </mt:If>
Index: /branches/release-40/default_templates/banner_header.mtml
===================================================================
--- /branches/release-40/default_templates/banner_header.mtml (revision 1851)
+++ /branches/release-40/default_templates/banner_header.mtml (revision 2603)
@@ -2,12 +2,12 @@
     <div id="header-inner">
         <div id="header-content">
-<mt:ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:ignore>
-<MTIf name="main_index">
-            <h1 id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></h1>
-            <h2 id="header-description"><$MTBlogDescription$></h2>
-<MTElse>
-            <div id="header-name"><a href="<$MTBlogURL$>" accesskey="1"><$MTBlogName encode_html="1"$></a></div>
-            <div id="header-description"><$MTBlogDescription$></div>
-</MTIf>
+<mt:Ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:Ignore>
+<mt:If name="main_index">
+            <h1 id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></h1>
+            <h2 id="header-description"><$mt:BlogDescription$></h2>
+<mt:Else>
+            <div id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></div>
+            <div id="header-description"><$mt:BlogDescription$></div>
+</mt:If>
         </div>
     </div>
Index: /branches/release-40/default_templates/entry_summary.mtml
===================================================================
--- /branches/release-40/default_templates/entry_summary.mtml (revision 2471)
+++ /branches/release-40/default_templates/entry_summary.mtml (revision 2603)
@@ -1,41 +1,41 @@
-<$MTEntryTrackbackData$>
-<div id="entry-<$MTEntryID$>" class="entry-asset asset hentry">
+<$mt:EntryTrackbackData$>
+<div id="entry-<$mt:EntryID$>" class="entry-asset asset hentry">
     <div class="asset-header">
-        <h2 class="asset-name entry-title"><a href="<$MTEntryPermalink$>" rel="bookmark"><$MTEntryTitle$></a></h2>
+        <h2 class="asset-name entry-title"><a href="<$mt:EntryPermalink$>" rel="bookmark"><$mt:EntryTitle$></a></h2>
         <div class="asset-meta">
             <span class="byline">
-    <MTIfNonEmpty tag="EntryAuthorDisplayName">
-                <__trans phrase="By [_1] on [_2]" params="<span class="vcard author"><$MTEntryAuthorLink show_hcard="1"$></span>%%<abbr class="published" title="<$MTEntryDate format_name="iso8601"$>"><$MTEntryDate format="%x %X"$></abbr>">
-    <MTElse>
-                <abbr class="published" title="<$MTEntryDate format_name="iso8601"$>"><$MTEntryDate format="%x %X"$></abbr>
-    </MTIfNonEmpty>
+    <mt:IfNonEmpty tag="EntryAuthorDisplayName">
+                <__trans phrase="By [_1] on [_2]" params="<span class="vcard author"><$mt:EntryAuthorLink show_hcard="1"$></span>%%<abbr class="published" title="<$mt:EntryDate format_name="iso8601"$>"><$mt:EntryDate format="%x %X"$></abbr>">
+    <mt:Else>
+                <abbr class="published" title="<$mt:EntryDate format_name="iso8601"$>"><$mt:EntryDate format="%x %X"$></abbr>
+    </mt:IfNonEmpty>
             </span>
-<MTUnless name="hide_counts" eq="1">
-            <MTIfCommentsActive><span class="separator">|</span> <a href="<$MTEntryPermalink$>#comments"><$MTEntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></a></MTIfCommentsActive>
-            <MTIfPingsActive><span class="separator">|</span> <a href="<$MTEntryPermalink$>#trackbacks"><$MTEntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></a></MTIfPingsActive>
-</MTUnless>
+<mt:Unless name="hide_counts" eq="1">
+            <mt:IfCommentsActive><span class="separator">|</span> <a href="<$mt:EntryPermalink$>#comments"><$mt:EntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></a></mt:IfCommentsActive>
+            <mt:IfPingsActive><span class="separator">|</span> <a href="<$mt:EntryPermalink$>#trackbacks"><$mt:EntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></a></mt:IfPingsActive>
+</mt:Unless>
         </div>
     </div>
     <div class="asset-content entry-content">
-<MTIfNonEmpty tag="EntryBody">
+<mt:IfNonEmpty tag="EntryBody">
         <div class="asset-body">
-            <$MTEntryBody$>
+            <$mt:EntryBody$>
         </div>
-</MTIfNonEmpty>
-<mt:if name="entry_archive">
-    <MTEntryIfTagged>
+</mt:IfNonEmpty>
+<mt:If name="entry_archive">
+    <mt:EntryIfTagged>
         <div class="entry-tags">
             <h4 class="entry-tags-header"><__trans phrase="Tags"><span class="delimiter">:</span></h4>
             <ul class="entry-tags-list">
-                <li class="entry-tag"><MTEntryTags glue='<span class="delimiter">,</span></li> <li class="entry-tag">'><a href="javascript:void(0)" onclick="location.href='<$MTTagSearchLink encode_js="1"$>';return false;" rel="tag"><$MTTagName$></a></MTEntryTags></li>
+                <li class="entry-tag"><mt:EntryTags glue='<span class="delimiter">,</span></li> <li class="entry-tag">'><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;" rel="tag"><$mt:TagName$></a></mt:EntryTags></li>
             </ul>
         </div>
-    </MTEntryIfTagged>
-</mt:if>
-<MTIfNonEmpty tag="EntryMore" convert_breaks="0">
+    </mt:EntryIfTagged>
+</mt:If>
+<mt:IfNonEmpty tag="EntryMore" convert_breaks="0">
         <div class="asset-more-link">
-            <__trans phrase="Continue reading <a href="[_1]" rel="bookmark">[_2]</a>." params="<$MTEntryPermalink$>#more%%<$MTEntryTitle$>">
+            <__trans phrase="Continue reading <a href="[_1]" rel="bookmark">[_2]</a>." params="<$mt:EntryPermalink$>#more%%<$mt:EntryTitle$>">
         </div>
-</MTIfNonEmpty>
+</mt:IfNonEmpty>
     </div>
     <div class="asset-footer"></div>
Index: /branches/release-40/default_templates/comment_response.mtml
===================================================================
--- /branches/release-40/default_templates/comment_response.mtml (revision 2393)
+++ /branches/release-40/default_templates/comment_response.mtml (revision 2603)
@@ -5,28 +5,28 @@
 
 
-<MTIf name="comment_confirmation">
-    <mt:ignore><!-- Success message when comment has been submitted --></mt:ignore>
-    <MTSetVar name="page_title" value="<__trans phrase="Confirmation...">">
-    <MTSetVar name="message" value="<p><__trans phrase="Your comment has been submitted!"></p>">
-<MTElse name="comment_pending">
-    <mt:ignore><!-- Pending message when comment is being held for review --></mt:ignore>
-    <MTSetVar name="page_title" value="<__trans phrase="Thank you for commenting.">">
-    <MTSetVar name="message" value="<p><__trans phrase="Your comment has been received and held for approval by the blog owner."></p>">
-<MTElse name="comment_error">
-    <mt:ignore><!-- Error message when comment submission fails --></mt:ignore>
-    <MTSetVar name="page_title" value="<__trans phrase="Comment Submission Error">">
-    <MTSetVarBlock name="message"><p><__trans phrase="Your comment submission failed for the following reasons: [_1]" params="<$MTErrorMessage$>"></p></MTSetVarBlock>
-</MTIf>
+<mt:If name="comment_confirmation">
+    <mt:Ignore><!-- Success message when comment has been submitted --></mt:Ignore>
+    <$mt:SetVar name="page_title" value="<__trans phrase="Confirmation...">"$>
+    <$mt:SetVar name="message" value="<p><__trans phrase="Your comment has been submitted!"></p>"$>
+<mt:Else name="comment_pending">
+    <mt:Ignore><!-- Pending message when comment is being held for review --></mt:Ignore>
+    <$mt:SetVar name="page_title" value="<__trans phrase="Thank you for commenting.">"$>
+    <$mt:SetVar name="message" value="<p><__trans phrase="Your comment has been received and held for approval by the blog owner."></p>"$>
+<mt:Else name="comment_error">
+    <mt:Ignore><!-- Error message when comment submission fails --></mt:Ignore>
+    <$mt:SetVar name="page_title" value="<__trans phrase="Comment Submission Error">"$>
+    <mt:SetVarBlock name="message"><p><__trans phrase="Your comment submission failed for the following reasons: [_1]" params="<$mt:ErrorMessage$>"></p></mt:SetVarBlock>
+</mt:If>
 
 
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <$MTVar name="page_title"$></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <$mt:Var name="page_title"$></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="<$mt:var name="body_class"$> <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="<$mt:Var name="body_class"$> <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -37,12 +37,12 @@
                     <div id="alpha">
                         <div id="alpha-inner">
-                            <h1 id="page-title"><$MTVar name="page_title"$></h1>
-                            <$MTVar name="message"$>
-                            <p><__trans phrase="Return to the <a href="[_1]">original entry</a>." params="<$MTEntryLink$>"></p>
+                            <h1 id="page-title"><$mt:Var name="page_title"$></h1>
+                            <$mt:Var name="message"$>
+                            <p><__trans phrase="Return to the <a href="[_1]">original entry</a>." params="<$mt:EntryLink$>"></p>
                         </div>
                     </div>
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -51,5 +51,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/commenter_notify.mtml
===================================================================
--- /branches/release-40/default_templates/commenter_notify.mtml (revision 1102)
+++ /branches/release-40/default_templates/commenter_notify.mtml (revision 2603)
@@ -1,11 +1,11 @@
-<__trans phrase="This email is to notify you that a new user has successfully registered on the blog '[_1]'. Listed below you will find some useful information about this new user." params="<$MTBlogName$>">
+<__trans phrase="This email is to notify you that a new user has successfully registered on the blog '[_1]'. Listed below you will find some useful information about this new user." params="<$mt:BlogName$>">
 
 <__trans phrase="New User Information:">
-<__trans phrase="Username: [_1]" params="<$MTCommenterUsername$>"> 
-<__trans phrase="Full Name: [_1]" params="<$MTCommenterName$>">
-<__trans phrase="Email: [_1]" params="<$MTCommenterEmail$>">
+<__trans phrase="Username: [_1]" params="<$mt:CommenterUsername$>"> 
+<__trans phrase="Full Name: [_1]" params="<$mt:CommenterName$>">
+<__trans phrase="Email: [_1]" params="<$mt:CommenterEmail$>">
 
 <__trans phrase="To view or edit this user, please click on or cut and paste the following URL into a web browser:">
-<mt:var name="profile_url">
+<$mt:Var name="profile_url"$>
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
Index: /branches/release-40/default_templates/footer-email.mtml
===================================================================
--- /branches/release-40/default_templates/footer-email.mtml (revision 1102)
+++ /branches/release-40/default_templates/footer-email.mtml (revision 2603)
@@ -1,4 +1,4 @@
 
 -- 
-<__trans phrase="Powered by Movable Type [_1]" params="<$MTVersion$>">
-<$mt:var name="portal_url"$>
+<__trans phrase="Powered by Movable Type [_1]" params="<$mt:Version$>">
+<$mt:Var name="portal_url"$>
Index: /branches/release-40/default_templates/archive_widgets_group.mtml
===================================================================
--- /branches/release-40/default_templates/archive_widgets_group.mtml (revision 2052)
+++ /branches/release-40/default_templates/archive_widgets_group.mtml (revision 2603)
@@ -2,13 +2,13 @@
     <__trans phrase="This is a custom set of widgets that are conditioned to serve different content based upon what type of archive it is included. More info: [_1]" params="http://www.movabletype.org/documentation/designer/widget-sets.html">
 </mt:Ignore>
-<mt:if name="category_archive">
+<mt:If name="category_archive">
     <mt:IfArchiveTypeEnabled archive_type="Category-Monthly">
-        <$mt:include widget="<__trans phrase="Current Category Monthly Archives">"$>
+        <$mt:Include widget="<__trans phrase="Current Category Monthly Archives">"$>
     </mt:IfArchiveTypeEnabled>
-</mt:if>
+</mt:If>
 <mt:IfArchiveTypeEnabled archive_type="Category">
-    <$mt:include widget="<__trans phrase="Category Archives">"$>
+    <$mt:Include widget="<__trans phrase="Category Archives">"$>
 </mt:IfArchiveTypeEnabled>
 <mt:IfArchiveTypeEnabled archive_type="Monthly">
-    <$mt:include widget="<__trans phrase="Monthly Archives">"$>
+    <$mt:Include widget="<__trans phrase="Monthly Archives">"$>
 </mt:IfArchiveTypeEnabled>
Index: /branches/release-40/default_templates/verify-subscribe.mtml
===================================================================
--- /branches/release-40/default_templates/verify-subscribe.mtml (revision 1102)
+++ /branches/release-40/default_templates/verify-subscribe.mtml (revision 2603)
@@ -1,7 +1,7 @@
-<__trans phrase="Thanks for subscribing to notifications about updates to [_1]. Follow the link below to confirm your subscription:" params="<$MTBlogName$>">
+<__trans phrase="Thanks for subscribing to notifications about updates to [_1]. Follow the link below to confirm your subscription:" params="<$mt:BlogName$>">
 
-<mt:var name="script_path">?__mode=confirm;email=<mt:var name="email" escape="url">;magic=<mt:var name="magic" escape="url">;blog_id=<$MTBlogID$><mt:if name="redirect_url">;redirect=<mt:var name="redirect_url" escape="url"><mt:else><mt:if name="entry">;entry_id=<$MTEntryID$></mt:if></mt:if>
+<$mt:Var name="script_path"$>?__mode=confirm;email=<$mt:Var name="email" escape="url"$>;magic=<$mt:Var name="magic" escape="url"$>;blog_id=<$mt:BlogID$><mt:If name="redirect_url">;redirect=<$mt:Var name="redirect_url" escape="url"$><mt:Else><mt:If name="entry">;entry_id=<$mt:EntryID$></mt:If></mt:If>
 
 <__trans phrase="If the link is not clickable, just copy and paste it into your browser.">
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
Index: /branches/release-40/default_templates/new-ping.mtml
===================================================================
--- /branches/release-40/default_templates/new-ping.mtml (revision 1103)
+++ /branches/release-40/default_templates/new-ping.mtml (revision 2603)
@@ -1,23 +1,23 @@
-<mt:if name="unapproved"><mt:if name="entry_id"><__trans phrase="An unapproved TrackBack has been posted on your blog [_1], for entry #[_2] ([_3]). You need to approve this TrackBack before it will appear on your site." params="<$MTBlogName$>%%<$MTEntryID$>%%<$MTEntryTitle$>">"><mt:else><mt:if name="category_id"><__trans phrase="An unapproved TrackBack has been posted on your blog [_1], for category #[_2], ([_3]). You need to approve this TrackBack before it will appear on your site." params="<$MTBlogName$>%%<$MTCategoryID$>%%<$MTCategoryLabel$>"></mt:if></mt:if></mt:if><mt:unless name="unapproved"><mt:if name="entry_id"><__trans phrase="A new TrackBack has been posted on your blog [_1], on entry #[_2] ([_3])." params="<$MTBlogName$>%%<$MTEntryID$>%%<$MTEntryTitle$>"><mt:else><mt:if name="category_id"><__trans phrase="A new TrackBack has been posted on your blog [_1], on category #[_2] ([_3])." params="<$MTBlogName$>%%<$MTCategoryID$>%%<$MTCategoryLabel$>"></mt:if></mt:if></mt:unless>
+<mt:If name="unapproved"><mt:If name="entry_id"><__trans phrase="An unapproved TrackBack has been posted on your blog [_1], for entry #[_2] ([_3]). You need to approve this TrackBack before it will appear on your site." params="<$mt:BlogName$>%%<$mt:EntryID$>%%<$mt:EntryTitle$>">"><mt:Else><mt:If name="category_id"><__trans phrase="An unapproved TrackBack has been posted on your blog [_1], for category #[_2], ([_3]). You need to approve this TrackBack before it will appear on your site." params="<$mt:BlogName$>%%<$mt:CategoryID$>%%<$mt:CategoryLabel$>"></mt:If></mt:If></mt:If><mt:Unless name="unapproved"><mt:If name="entry_id"><__trans phrase="A new TrackBack has been posted on your blog [_1], on entry #[_2] ([_3])." params="<$mt:BlogName$>%%<$mt:EntryID$>%%<$mt:EntryTitle$>"><mt:Else><mt:If name="category_id"><__trans phrase="A new TrackBack has been posted on your blog [_1], on category #[_2] ([_3])." params="<$mt:BlogName$>%%<$mt:CategoryID$>%%<$mt:CategoryLabel$>"></mt:If></mt:If></mt:Unless>
 
 <__trans phrase="Excerpt">: 
-<$MTPingExcerpt wrap_text="72"$>
+<$mt:PingExcerpt wrap_text="72"$>
 
-<__trans phrase="URL">: <$MTPingURL$>
-<__trans phrase="Title">: <$MTPingTitle$>
-<__trans phrase="Blog">: <$MTPingBlogName$>
-<__trans phrase="IP address">: <$MTPingIP$>
+<__trans phrase="URL">: <$mt:PingURL$>
+<__trans phrase="Title">: <$mt:PingTitle$>
+<__trans phrase="Blog">: <$mt:PingBlogName$>
+<__trans phrase="IP address">: <$mt:PingIP$>
 
-<mt:if name="state_editable"><mt:if name="unapproved"><__trans phrase="Approve TrackBack">: 
-  <<mt:var name="approve_url">>
-</mt:if></mt:if>
-<mt:if name="entry"><mt:ifnonempty tag="EntryPermalink"><__trans phrase="View TrackBack">: 
-  <<$MTEntryPermalink$>>
-</mt:ifnonempty></mt:if>
-<mt:if name="state_editable"><__trans phrase="Report TrackBack as spam">: 
-  <<mt:var name="spam_url">>
-</mt:if>
+<mt:If name="state_editable"><mt:If name="unapproved"><__trans phrase="Approve TrackBack">: 
+  <<$mt:Var name="approve_url"$>>
+</mt:If></mt:If>
+<mt:If name="entry"><mt:IfNonEmpty tag="EntryPermalink"><__trans phrase="View TrackBack">: 
+  <<$mt:EntryPermalink$>>
+</mt:IfNonEmpty></mt:If>
+<mt:If name="state_editable"><__trans phrase="Report TrackBack as spam">: 
+  <<$mt:Var name="spam_url"$>>
+</mt:If>
 <__trans phrase="Edit TrackBack">: 
-  <<mt:var name="edit_url">>
+  <<$mt:Var name="edit_url"$>>
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
Index: /branches/release-40/default_templates/syndication.mtml
===================================================================
--- /branches/release-40/default_templates/syndication.mtml (revision 2052)
+++ /branches/release-40/default_templates/syndication.mtml (revision 2603)
@@ -4,7 +4,7 @@
             <li class="blog feed"><img src="<$mt:StaticWebPath$>images/status_icons/feed.gif" alt="<__trans phrase="Subscribe to feed">" width="9" height="9" /> <a href="<$mt:Link template="feed_recent"$>"><__trans phrase="Subscribe to this blog's feed"></a></li>
 <mt:If name="search_results">
-    <mt:ifnonempty tag="mt:SearchString">
-            <li class="search-results-feed"><img src="<$mt:StaticWebPath$>images/status_icons/feed.gif" alt="<__trans phrase="Subscribe to feed">" width="9" height="9" /> <a href="<$mt:CGIPath$><$mt:SearchScript$>?<mt:IfTagSearch>tag<mt:Else>search</mt:IfTagSearch>=<$mt:SearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$mt:SearchIncludeBlogs$>&amp;limit=<MTSearchMaxResults>" title="<__trans phrase="Subscribe to feed">"><__trans phrase="Search results matching &ldquo;<$mt:SearchString$>&rdquo;"></a></li>
-    </mt:ifnonempty>
+    <mt:IfNonEmpty tag="mt:SearchString">
+            <li class="search-results-feed"><img src="<$mt:StaticWebPath$>images/status_icons/feed.gif" alt="<__trans phrase="Subscribe to feed">" width="9" height="9" /> <a href="<$mt:CGIPath$><$mt:SearchScript$>?<mt:IfTagSearch>tag<mt:Else>search</mt:IfTagSearch>=<$mt:SearchString encode_url="1"$>&amp;Template=feed&amp;IncludeBlogs=<$mt:SearchIncludeBlogs$>&amp;limit=<$mt:SearchMaxResults$>" title="<__trans phrase="Subscribe to feed">"><__trans phrase="Search results matching &ldquo;<$mt:SearchString$>&rdquo;"></a></li>
+    </mt:IfNonEmpty>
 </mt:If>
         </ul>
Index: /branches/release-40/default_templates/comment_throttle.mtml
===================================================================
--- /branches/release-40/default_templates/comment_throttle.mtml (revision 1103)
+++ /branches/release-40/default_templates/comment_throttle.mtml (revision 2603)
@@ -1,8 +1,8 @@
-<mt:setvarblock name="message"><__trans phrase="If this was a mistake, you can unblock the IP address and allow the visitor to add it again by logging in to your Movable Type installation, going to Blog Config - IP Banning, and deleting the IP address [_1] from the list of banned addresses." params="<mt:var name="throttled_ip">"></mt:setvarblock>
-<__trans phrase="A visitor to your blog [_1] has automatically been banned by adding more than the allowed number of comments in the last [_2] seconds." params="<$MTBlogName$>%%<mt:var name="throttle_seconds">">
+<mt:SetVarBlock name="message"><__trans phrase="If this was a mistake, you can unblock the IP address and allow the visitor to add it again by logging in to your Movable Type installation, going to Blog Config - IP Banning, and deleting the IP address [_1] from the list of banned addresses." params="<$mt:Var name="throttled_ip"$>"></mt:SetVarBlock>
+<__trans phrase="A visitor to your blog [_1] has automatically been banned by adding more than the allowed number of comments in the last [_2] seconds." params="<$mt:BlogName$>%%<$mt:Var name="throttle_seconds"$>">
 
 <__trans phrase="This has been done to prevent a malicious script from overwhelming your weblog with comments. The banned IP address is">
 
-<mt:var name="throttled_ip">
+<$mt:Var name="throttled_ip"$>
 
-<mt:var name="message">
+<$mt:Var name="message"$>
Index: /branches/release-40/default_templates/category_entry_listing.mtml
===================================================================
--- /branches/release-40/default_templates/category_entry_listing.mtml (revision 2101)
+++ /branches/release-40/default_templates/category_entry_listing.mtml (revision 2603)
@@ -3,20 +3,20 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></title>
-<mt:ignore>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></title>
+<mt:Ignore>
     <!-- Include Next and Previous links if publishing a date-based archive -->
-</mt:ignore>
-<MTIf name="datebased_archive">
-    <MTArchivePrevious><link rel="prev" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchivePrevious>
-    <MTArchiveNext><link rel="next" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchiveNext>
-</MTIf>
+</mt:Ignore>
+<mt:If name="datebased_archive">
+    <mt:ArchivePrevious><link rel="prev" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchivePrevious>
+    <mt:ArchiveNext><link rel="next" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchiveNext>
+</mt:If>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<MTVar name="archive_class"> <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<$mt:Var name="archive_class"$> <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -27,26 +27,26 @@
                     <div id="alpha">
                         <div id="alpha-inner">
-<MTIf name="datebased_archive">
-                            <mt:ignore><!-- Title for category-monthly entry listings --></mt:ignore>
-                            <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></h1>
-<MTElse>
-                            <mt:ignore><!-- Title for category entry listings --></mt:ignore>
-                            <h1 id="page-title" class="archive-title"><__trans phrase="Recently in <em>[_1]</em> Category" params="<$MTArchiveTitle$>"></h1>
-</MTIf>
+<mt:If name="datebased_archive">
+                            <mt:Ignore><!-- Title for category-monthly entry listings --></mt:Ignore>
+                            <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></h1>
+<mt:Else>
+                            <mt:Ignore><!-- Title for category entry listings --></mt:Ignore>
+                            <h1 id="page-title" class="archive-title"><__trans phrase="Recently in <em>[_1]</em> Category" params="<$mt:ArchiveTitle$>"></h1>
+</mt:If>
 
 
-<mt:ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:ignore>
-<MTUnless name="datebased_archive"><$mt:setvar name="limit" value="auto"$></MTUnless>
-<MTEntries limit="$limit">
-                            <mt:ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:ignore>
-                            <$mt:include module="<__trans phrase="Entry Summary">"$>
-</MTEntries>
+<mt:Ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:Ignore>
+<mt:Unless name="datebased_archive"><$mt:SetVar name="limit" value="auto"$></mt:Unless>
+<mt:Entries limit="$limit">
+                            <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
+                            <$mt:Include module="<__trans phrase="Entry Summary">"$>
+</mt:Entries>
 
 
                             <div class="content-nav">
-                                <MTArchivePrevious><a href="<$MTArchiveLink$>">&laquo; <$MTArchiveTitle$></a> |</MTArchivePrevious>
-                                <a href="<$MTLink template="main_index"$>"><__trans phrase="Main Index"></a> |
-                                <a href="<$MTLink template="archive_index"$>"><__trans phrase="Archives"></a>
-                                <MTArchiveNext>| <a href="<$MTArchiveLink$>"><$MTArchiveTitle$> &raquo;</a></MTArchiveNext>
+                                <mt:ArchivePrevious><a href="<$mt:ArchiveLink$>">&laquo; <$mt:ArchiveTitle$></a> |</mt:ArchivePrevious>
+                                <a href="<$mt:Link template="main_index"$>"><__trans phrase="Main Index"></a> |
+                                <a href="<$mt:Link template="archive_index"$>"><__trans phrase="Archives"></a>
+                                <mt:ArchiveNext>| <a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$> &raquo;</a></mt:ArchiveNext>
                             </div>
 
@@ -56,5 +56,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -63,5 +63,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/new-comment.mtml
===================================================================
--- /branches/release-40/default_templates/new-comment.mtml (revision 1103)
+++ /branches/release-40/default_templates/new-comment.mtml (revision 2603)
@@ -1,19 +1,19 @@
-<mt:if name="unapproved"><__trans phrase="An unapproved comment has been posted on your blog [_1], for entry #[_2] ([_3]). You need to approve this comment before it will appear on your site." params="<$MTBlogName$>%%<$MTEntryID$>%%<$MTEntryTitle$>"><mt:else><__trans phrase="A new comment has been posted on your blog [_1], on entry #[_2] ([_3])." params="<$MTBlogName$>%%<$MTEntryID$>%%<$MTEntryTitle$>"></mt:if>
+<mt:If name="unapproved"><__trans phrase="An unapproved comment has been posted on your blog [_1], for entry #[_2] ([_3]). You need to approve this comment before it will appear on your site." params="<$mt:BlogName$>%%<$mt:EntryID$>%%<$mt:EntryTitle$>"><mt:Else><__trans phrase="A new comment has been posted on your blog [_1], on entry #[_2] ([_3])." params="<$mt:BlogName$>%%<$mt:EntryID$>%%<$mt:EntryTitle$>"></mt:If>
 
-<$MTCommentBody remove_html="1" wrap_text="72"$>
+<$mt:CommentBody remove_html="1" wrap_text="72"$>
 
-<__trans phrase="Commenter name: [_1]" params="<$MTCommentAuthor$>"> 
-<__trans phrase="Commenter email address: [_1]" params="<$MTCommentEmail$>">
-<__trans phrase="Commenter URL: [_1]" params="<$MTCommentURL$>">
-<__trans phrase="Commenter IP address: [_1]" params="<$MTCommentIP$>">
+<__trans phrase="Commenter name: [_1]" params="<$mt:CommentAuthor$>"> 
+<__trans phrase="Commenter email address: [_1]" params="<$mt:CommentEmail$>">
+<__trans phrase="Commenter URL: [_1]" params="<$mt:CommentURL$>">
+<__trans phrase="Commenter IP address: [_1]" params="<$mt:CommentIP$>">
 
-<mt:if name="unapproved"><mt:if name="state_editable"><__trans phrase="Approve comment:">
-  <<mt:var name="approve_url">></mt:if></mt:if>
-<mt:if name="view_url"><__trans phrase="View comment:">
-  <<mt:var name="view_url">></mt:if>
+<mt:If name="unapproved"><mt:If name="state_editable"><__trans phrase="Approve comment:">
+  <<$mt:Var name="approve_url"$>></mt:If></mt:If>
+<mt:If name="view_url"><__trans phrase="View comment:">
+  <<$mt:Var name="view_url"$>></mt:If>
 <__trans phrase="Edit comment:">
-  <<mt:var name="edit_url">>
-<mt:if name="state_editable"><__trans phrase="Report comment as spam:">
-  <<mt:var name="spam_url">></mt:if>
+  <<$mt:Var name="edit_url"$>>
+<mt:If name="state_editable"><__trans phrase="Report comment as spam:">
+  <<$mt:Var name="spam_url"$>></mt:If>
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
Index: /branches/release-40/default_templates/entry.mtml
===================================================================
--- /branches/release-40/default_templates/entry.mtml (revision 2593)
+++ /branches/release-40/default_templates/entry.mtml (revision 2603)
@@ -3,16 +3,16 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <MTEntryPrevious><link rel="prev bookmark" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryPrevious>
-    <MTEntryNext><link rel="next bookmark" href="<$MTEntryPermalink$>" title="<$MTEntryTitle encode_html="1"$>" /></MTEntryNext>
-    <$MTEntryTrackbackData$>
-    <title><$MTEntryTitle encode_html="1"$> - <$MTBlogName encode_html="1"$></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <mt:EntryPrevious><link rel="prev bookmark" href="<$mt:EntryPermalink$>" title="<$mt:EntryTitle encode_html="1"$>" /></mt:EntryPrevious>
+    <mt:EntryNext><link rel="next bookmark" href="<$mt:EntryPermalink$>" title="<$mt:EntryTitle encode_html="1"$>" /></mt:EntryNext>
+    <$mt:EntryTrackbackData$>
+    <title><$mt:EntryTitle encode_html="1"$> - <$mt:BlogName encode_html="1"$></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-entry-archive <$MTVar name="page_layout"$>" onload="mtEntryOnLoad()" onunload="mtEntryOnUnload()">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-entry-archive <$mt:Var name="page_layout"$>" onload="mtEntryOnLoad()" onunload="mtEntryOnUnload()">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -25,34 +25,34 @@
 
 
-                            <div id="entry-<$MTEntryID$>" class="entry-asset asset hentry">
+                            <div id="entry-<$mt:EntryID$>" class="entry-asset asset hentry">
                                 <div class="asset-header">
-                                    <h1 id="page-title" class="asset-name entry-title"><$MTEntryTitle$></h1>
+                                    <h1 id="page-title" class="asset-name entry-title"><$mt:EntryTitle$></h1>
                                     <div class="asset-meta">
                                         <span class="byline">
-<MTIfNonEmpty tag="EntryAuthorDisplayName">
-                                            <__trans phrase="By [_1] on [_2]" params="<span class="vcard author"><$MTEntryAuthorLink show_hcard="1"$></span>%%<abbr class="published" title="<$MTEntryDate format_name="iso8601"$>"><$MTEntryDate format="%x %X"$></abbr>">
-<MTElse>
-                                            <abbr class="published" title="<$MTEntryDate format_name="iso8601"$>"><$MTEntryDate format="%x %X"$></abbr>
-</MTIfNonEmpty>
+<mt:IfNonEmpty tag="EntryAuthorDisplayName">
+                                            <__trans phrase="By [_1] on [_2]" params="<span class="vcard author"><$mt:EntryAuthorLink show_hcard="1"$></span>%%<abbr class="published" title="<$mt:EntryDate format_name="iso8601"$>"><$mt:EntryDate format="%x %X"$></abbr>">
+<mt:Else>
+                                            <abbr class="published" title="<$mt:EntryDate format_name="iso8601"$>"><$mt:EntryDate format="%x %X"$></abbr>
+</mt:IfNonEmpty>
                                         </span>
-<MTIfCommentsActive>
-                                        <span class="separator">|</span> <a href="<$MTEntryPermalink$>#comments"><$MTEntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></a>
-</MTIfCommentsActive>
-<MTIfPingsActive>
-                                        <span class="separator">|</span> <a href="<$MTEntryPermalink$>#trackbacks"><$MTEntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></a>
-</MTIfPingsActive>
+<mt:IfCommentsActive>
+                                        <span class="separator">|</span> <a href="<$mt:EntryPermalink$>#comments"><$mt:EntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></a>
+</mt:IfCommentsActive>
+<mt:IfPingsActive>
+                                        <span class="separator">|</span> <a href="<$mt:EntryPermalink$>#trackbacks"><$mt:EntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></a>
+</mt:IfPingsActive>
                                     </div>
                                 </div>
                                 <div class="asset-content entry-content">
-<MTIfNonEmpty tag="EntryBody">
+<mt:IfNonEmpty tag="EntryBody">
                                     <div class="asset-body">
-                                        <$MTEntryBody$>
+                                        <$mt:EntryBody$>
                                     </div>
-</MTIfNonEmpty>
-<MTIfNonEmpty tag="EntryMore" convert_breaks="0">
+</mt:IfNonEmpty>
+<mt:IfNonEmpty tag="EntryMore" convert_breaks="0">
                                     <div id="more" class="asset-more">
-                                        <$MTEntryMore$>
+                                        <$mt:EntryMore$>
                                     </div>
-</MTIfNonEmpty>
+</mt:IfNonEmpty>
                                 </div>
                                 <div class="asset-footer">
@@ -62,23 +62,23 @@
                                         <h4 class="entry-categories-header"><__trans phrase="Categories"><span class="delimiter">:</span></h4>
                                         <ul class="entry-categories-list">
-                                            <li class="entry-category"><MTEntryCategories glue='<span class="delimiter">,</span></li> <li class="entry-category">'><a href="<$MTCategoryArchiveLink$>" rel="tag"><$MTCategoryLabel$></a></MTEntryCategories></li>
+                                            <li class="entry-category"><mt:EntryCategories glue='<span class="delimiter">,</span></li> <li class="entry-category">'><a href="<$mt:CategoryArchiveLink$>" rel="tag"><$mt:CategoryLabel$></a></mt:EntryCategories></li>
                                         </ul>
                                     </div>
     </mt:If>
 </mt:IfArchiveTypeEnabled>
-<MTEntryIfTagged>
+<mt:EntryIfTagged>
                                     <div class="entry-tags">
                                         <h4 class="entry-tags-header"><__trans phrase="Tags"><span class="delimiter">:</span></h4>
                                         <ul class="entry-tags-list">
-                                            <li class="entry-tag"><MTEntryTags glue='<span class="delimiter">,</span></li> <li class="entry-tag">'><a href="javascript:void(0)" onclick="location.href='<$MTTagSearchLink encode_js="1"$>';return false;" rel="tag"><$MTTagName$></a></MTEntryTags></li>
+                                            <li class="entry-tag"><mt:EntryTags glue='<span class="delimiter">,</span></li> <li class="entry-tag">'><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;" rel="tag"><$mt:TagName$></a></mt:EntryTags></li>
                                         </ul>
                                     </div>
-</MTEntryIfTagged>
+</mt:EntryIfTagged>
                                 </div>
                             </div>
 
 
-                    <$MTInclude module="<__trans phrase="Trackbacks">"$>
-                    <$MTInclude module="<__trans phrase="Comments">"$>
+                    <$mt:Include module="<__trans phrase="Trackbacks">"$>
+                    <$mt:Include module="<__trans phrase="Comments">"$>
 
 
@@ -87,5 +87,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -94,5 +94,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/feed_recent.mtml
===================================================================
--- /branches/release-40/default_templates/feed_recent.mtml (revision 1463)
+++ /branches/release-40/default_templates/feed_recent.mtml (revision 2603)
@@ -1,35 +1,35 @@
-<$MTHTTPContentType type="application/atom+xml"$><?xml version="1.0" encoding="<$MTPublishCharset$>"?>
+<$mt:HTTPContentType type="application/atom+xml"$><?xml version="1.0" encoding="<$mt:PublishCharset$>"?>
 <feed xmlns="http://www.w3.org/2005/Atom">
-    <title><$MTBlogName remove_html="1" encode_xml="1"$></title>
-    <link rel="alternate" type="text/html" href="<$MTBlogURL encode_xml="1"$>" />
-    <link rel="self" type="application/atom+xml" href="<$MTLink template="feed_recent"$>" />
-    <id>tag:<$MTBlogHost exclude_port="1" encode_xml="1"$>,<$MTTemplateCreatedOn format="%Y-%m-%d"$>:<$MTBlogRelativeURL encode_xml="1"$>/<$MTBlogID$></id>
-    <updated><MTEntries lastn="1"><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></MTEntries></updated>
-    <MTIfNonEmpty tag="MTBlogDescription"><subtitle><$MTBlogDescription remove_html="1" encode_xml="1"$></subtitle></MTIfNonEmpty>
-    <generator uri="http://www.sixapart.com/movabletype/"><$MTProductName version="1"$></generator>
-<MTEntries lastn="15">
+    <title><$mt:BlogName remove_html="1" encode_xml="1"$></title>
+    <link rel="alternate" type="text/html" href="<$mt:BlogURL encode_xml="1"$>" />
+    <link rel="self" type="application/atom+xml" href="<$mt:Link template="feed_recent"$>" />
+    <id>tag:<$mt:BlogHost exclude_port="1" encode_xml="1"$>,<$mt:TemplateCreatedOn format="%Y-%m-%d"$>:<$mt:BlogRelativeURL encode_xml="1"$>/<$mt:BlogID$></id>
+    <updated><mt:Entries lastn="1"><$mt:EntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></mt:Entries></updated>
+    <mt:IfNonEmpty tag="MTBlogDescription"><subtitle><$mt:BlogDescription remove_html="1" encode_xml="1"$></subtitle></mt:IfNonEmpty>
+    <generator uri="http://www.sixapart.com/movabletype/"><$mt:ProductName version="1"$></generator>
+<mt:Entries lastn="15">
 <entry>
-    <title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
-    <link rel="alternate" type="text/html" href="<$MTEntryPermalink encode_xml="1"$>" />
-    <id><$MTEntryAtomID$></id>
+    <title><$mt:EntryTitle remove_html="1" encode_xml="1"$></title>
+    <link rel="alternate" type="text/html" href="<$mt:EntryPermalink encode_xml="1"$>" />
+    <id><$mt:EntryAtomID$></id>
 
-    <published><$MTEntryDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published>
-    <updated><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></updated>
+    <published><$mt:EntryDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></published>
+    <updated><$mt:EntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></updated>
 
-    <summary><$MTEntryExcerpt remove_html="1" encode_xml="1"$></summary>
+    <summary><$mt:EntryExcerpt remove_html="1" encode_xml="1"$></summary>
     <author>
-        <name><$MTEntryAuthorDisplayName encode_xml="1"$></name>
-        <MTIfNonEmpty tag="MTEntryAuthorURL"><uri><$MTEntryAuthorURL encode_xml="1"$></uri></MTIfNonEmpty>
+        <name><$mt:EntryAuthorDisplayName encode_xml="1"$></name>
+        <mt:IfNonEmpty tag="MTEntryAuthorURL"><uri><$mt:EntryAuthorURL encode_xml="1"$></uri></mt:IfNonEmpty>
     </author>
-    <MTEntryCategories>
-        <category term="<$MTCategoryLabel encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#category" />
-    </MTEntryCategories>
-    <MTEntryIfTagged><MTEntryTags><category term="<$MTTagName normalize="1" encode_xml="1"$>" label="<$MTTagName encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#tag" />
-    </MTEntryTags></MTEntryIfTagged>
-    <content type="html" xml:lang="<$MTBlogLanguage ietf="1"$>" xml:base="<$MTBlogURL encode_xml="1"$>">
-        <$MTEntryBody encode_xml="1"$>
-        <$MTEntryMore encode_xml="1"$>
+    <mt:EntryCategories>
+        <category term="<$mt:CategoryLabel encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#category" />
+    </mt:EntryCategories>
+    <mt:EntryIfTagged><mt:EntryTags><category term="<$mt:TagName normalize="1" encode_xml="1"$>" label="<$mt:TagName encode_xml="1"$>" scheme="http://www.sixapart.com/ns/types#tag" />
+    </mt:EntryTags></mt:EntryIfTagged>
+    <content type="html" xml:lang="<$mt:BlogLanguage ietf="1"$>" xml:base="<$mt:BlogURL encode_xml="1"$>">
+        <$mt:EntryBody encode_xml="1"$>
+        <$mt:EntryMore encode_xml="1"$>
     </content>
 </entry>
-</MTEntries>
+</mt:Entries>
 </feed>
Index: /branches/release-40/default_templates/recover-password.mtml
===================================================================
--- /branches/release-40/default_templates/recover-password.mtml (revision 1104)
+++ /branches/release-40/default_templates/recover-password.mtml (revision 2603)
@@ -1,10 +1,10 @@
 <__trans phrase="_USAGE_FORGOT_PASSWORD_1">
 
-    <mt:var name="user_password">
+    <$mt:Var name="user_password"$>
 
 <__trans phrase="_USAGE_FORGOT_PASSWORD_2">
 
-    <mt:var name="link_to_login">
+    <$mt:Var name="link_to_login"$>
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
 
Index: /branches/release-40/default_templates/popup_image.mtml
===================================================================
--- /branches/release-40/default_templates/popup_image.mtml (revision 1423)
+++ /branches/release-40/default_templates/popup_image.mtml (revision 2603)
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
-<head><title><$MTImageURL$></title></head>
+<head><title><$mt:ImageURL$></title></head>
 <body id="uploaded-image-popup" class="popup" style="margin: 0;padding: 0;">
-    <img src="<$MTImageURL$>" width="<$MTImageWidth$>" height="<$MTImageHeight$>" alt="<$MTImageURL$>" style="margin: 0;padding: 0;border: 0;" />
+    <img src="<$mt:ImageURL$>" width="<$mt:ImageWidth$>" height="<$mt:ImageHeight$>" alt="<$mt:ImageURL$>" style="margin: 0;padding: 0;border: 0;" />
 </body>
 </html>
Index: /branches/release-40/default_templates/javascript.mtml
===================================================================
--- /branches/release-40/default_templates/javascript.mtml (revision 2553)
+++ /branches/release-40/default_templates/javascript.mtml (revision 2603)
@@ -477,5 +477,5 @@
             url += '&entry_id=' + entry_id;
         } else {
-            url += '&return_url=<$MTBlogURL encode_url="1"$>';
+            url += '&return_url=<$mt:BlogURL encode_url="1"$>';
         }
     } else {
@@ -528,5 +528,5 @@
             url += '&entry_id=' + entry_id;
         } else {
-            url += '&return_url=<$MTBlogURL encode_url="1"$>';
+            url += '&return_url=<$mt:BlogURL encode_url="1"$>';
         }
     } else {
Index: /branches/release-40/default_templates/archive_index.mtml
===================================================================
--- /branches/release-40/default_templates/archive_index.mtml (revision 2101)
+++ /branches/release-40/default_templates/archive_index.mtml (revision 2603)
@@ -3,13 +3,13 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Archives"></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Archives"></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-index <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-index <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -23,133 +23,133 @@
                             <h1 id="page-title" class="archive-title"><__trans phrase="Archives"></h1>
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of monthly archives, if monthly archives are enabled -->
-</mt:ignore>
-<MTIfArchiveTypeEnabled archive_type="Monthly">
+</mt:Ignore>
+<mt:IfArchiveTypeEnabled archive_type="Monthly">
                             <div class="archive-monthly archive-date-based archive">
-    <MTArchiveList archive_type="Monthly">
-        <MTArchiveListHeader>
+    <mt:ArchiveList archive_type="Monthly">
+        <mt:ArchiveListHeader>
                                 <h2 class="archive-header"><__trans phrase="Monthly Archives"></h2>
                                 <div class="archive-content">
                                     <ul class="archive-list">
-        </MTArchiveListHeader>
-                                        <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
-        <MTArchiveListFooter>
+        </mt:ArchiveListHeader>
+                                        <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
+        <mt:ArchiveListFooter>
                                     </ul>
                                 </div>
-        </MTArchiveListFooter>
-    </MTArchiveList>
+        </mt:ArchiveListFooter>
+    </mt:ArchiveList>
                             </div>
-</MTIfArchiveTypeEnabled>
+</mt:IfArchiveTypeEnabled>
 
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of category archives, if category archives are enabled -->
-</mt:ignore>
-<MTIfArchiveTypeEnabled archive_type="Category">
+</mt:Ignore>
+<mt:IfArchiveTypeEnabled archive_type="Category">
                             <div class="archive-category archive">
                                 <h2 class="archive-header"><__trans phrase="Categories"></h2>
                                 <div class="archive-content">
-    <MTTopLevelCategories>
-        <MTSubCatIsFirst>
+    <mt:TopLevelCategories>
+        <mt:SubCatIsFirst>
                                     <ul class="archive-list">
-        </MTSubCatIsFirst>
-        <MTIfNonZero tag="MTCategoryCount">
-                                        <li class="archive-list-item"><a href="<$MTCategoryArchiveLink$>" title="<$MTCategoryDescription$>"><$MTCategoryLabel$></a>
-        <MTElse>
-                                        <li class="archive-list-item"><$MTCategoryLabel$>
-        </MTIfNonZero>
-        <MTSubCatsRecurse>
+        </mt:SubCatIsFirst>
+        <mt:IfNonZero tag="MTCategoryCount">
+                                        <li class="archive-list-item"><a href="<$mt:CategoryArchiveLink$>" title="<$mt:CategoryDescription$>"><$mt:CategoryLabel$></a>
+        <mt:Else>
+                                        <li class="archive-list-item"><$mt:CategoryLabel$>
+        </mt:IfNonZero>
+        <$mt:SubCatsRecurse$>
                                         </li>
-        <MTSubCatIsLast>
+        <mt:SubCatIsLast>
                                     </ul>
-        </MTSubCatIsLast>
-    </MTTopLevelCategories>
+        </mt:SubCatIsLast>
+    </mt:TopLevelCategories>
                                 </div>
                             </div>
-</MTIfArchiveTypeEnabled>
+</mt:IfArchiveTypeEnabled>
 
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of author archives, if category author are enabled -->
-    <MTIfArchiveTypeEnabled archive_type="Author">
+    <mt:IfArchiveTypeEnabled archive_type="Author">
                                 <div class="archive-author archive">
-        <MTArchiveList archive_type="Author">
-            <MTArchiveListHeader>
+        <mt:ArchiveList archive_type="Author">
+            <mt:ArchiveListHeader>
                                     <h2 class="archive-header"><__trans phrase="Author Archives"></h2>
                                     <div class="archive-content">
                                         <ul class="archive-list">
-            </MTArchiveListHeader>
-                                            <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
-            <MTArchiveListFooter>
+            </mt:ArchiveListHeader>
+                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
+            <mt:ArchiveListFooter>
                                         </ul>
                                     </div>
-            </MTArchiveListFooter>
-        </MTArchiveList>
+            </mt:ArchiveListFooter>
+        </mt:ArchiveList>
                                 </div>
-    </MTIfArchiveTypeEnabled>
-</mt:ignore>
+    </mt:IfArchiveTypeEnabled>
+</mt:Ignore>
 
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of category archives by month, if category archives are enabled -->
-    <MTIfArchiveTypeEnabled archive_type="Category-Monthly">
+    <mt:IfArchiveTypeEnabled archive_type="Category-Monthly">
                                 <div class="archive-category-monthly archive">
-        <MTArchiveList archive_type="Category-Monthly">
-            <MTArchiveListHeader>
+        <mt:ArchiveList archive_type="Category-Monthly">
+            <mt:ArchiveListHeader>
                                     <h2 class="archive-header"><__trans phrase="Category Monthly Archives"></h2>
                                     <div class="archive-content">
                                         <ul class="archive-list">
-            </MTArchiveListHeader>
-                                            <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
-            <MTArchiveListFooter>
+            </mt:ArchiveListHeader>
+                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
+            <mt:ArchiveListFooter>
                                         </ul>
                                     </div>
-            </MTArchiveListFooter>
-        </MTArchiveList>
+            </mt:ArchiveListFooter>
+        </mt:ArchiveList>
                                 </div>
-    </MTIfArchiveTypeEnabled>
-</mt:ignore>
+    </mt:IfArchiveTypeEnabled>
+</mt:Ignore>
 
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of author archives, if category archives are enabled -->
-    <MTIfArchiveTypeEnabled archive_type="Author-Monthly">
+    <mt:IfArchiveTypeEnabled archive_type="Author-Monthly">
                                 <div class="archive-author-monthly archive">
-        <MTArchiveList archive_type="Author-Monthly">
-            <MTArchiveListHeader>
+        <mt:ArchiveList archive_type="Author-Monthly">
+            <mt:ArchiveListHeader>
                                     <h2 class="archive-header"><__trans phrase="Author Monthly Archives"></h2>
                                     <div class="archive-content">
                                         <ul class="archive-list">
-            </MTArchiveListHeader>
-                                            <li class="archive-list-item"><a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
-            <MTArchiveListFooter>
+            </mt:ArchiveListHeader>
+                                            <li class="archive-list-item"><a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
+            <mt:ArchiveListFooter>
                                         </ul>
                                     </div>
-            </MTArchiveListFooter>
-        </MTArchiveList>
+            </mt:ArchiveListFooter>
+        </mt:ArchiveList>
                                 </div>
-    </MTIfArchiveTypeEnabled>
-</mt:ignore>
+    </mt:IfArchiveTypeEnabled>
+</mt:Ignore>
 
 
-<mt:ignore>
+<mt:Ignore>
     <!-- List of entry archives, if entry archives are enabled -->
-<MTIfArchiveTypeEnabled archive_type="Individual">
+<mt:IfArchiveTypeEnabled archive_type="Individual">
                             <div class="archive-individual archive-date-based archive">
-    <MTArchiveList archive_type="Individual">
-        <MTArchiveListHeader>
+    <mt:ArchiveList archive_type="Individual">
+        <mt:ArchiveListHeader>
                                 <div class="archive-content">
                                     <ul class="archive-list">
-        </MTArchiveListHeader>
-                                        <li class="archive-list-item"><$MTArchiveDate format="%Y.%m.%d"$>: <a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a></li>
-        <MTArchiveListFooter>
+        </mt:ArchiveListHeader>
+                                        <li class="archive-list-item"><$mt:ArchiveDate format="%Y.%m.%d"$>: <a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$></a></li>
+        <mt:ArchiveListFooter>
                                     </ul>
                                 </div>
-        </MTArchiveListFooter>
-    </MTArchiveList>
+        </mt:ArchiveListFooter>
+    </mt:ArchiveList>
                             </div>
-</MTIfArchiveTypeEnabled>
-</mt:ignore>
+</mt:IfArchiveTypeEnabled>
+</mt:Ignore>
 
 
@@ -158,5 +158,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -165,5 +165,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/trackbacks.mtml
===================================================================
--- /branches/release-40/default_templates/trackbacks.mtml (revision 2383)
+++ /branches/release-40/default_templates/trackbacks.mtml (revision 2603)
@@ -1,38 +1,38 @@
-<mt:ignore><!-- Display TrackBacks for the entry/page or TrackBack details if TrackBacks are being accepted --></mt:ignore>
-<MTIfPingsActive>
+<mt:Ignore><!-- Display TrackBacks for the entry/page or TrackBack details if TrackBacks are being accepted --></mt:Ignore>
+<mt:IfPingsActive>
 <div id="trackbacks" class="trackbacks">
-    <h2 class="trackbacks-header"><$MTEntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></h2>
+    <h2 class="trackbacks-header"><$mt:EntryTrackbackCount singular="<__trans phrase="1 TrackBack">" plural="<__trans phrase="# TrackBacks">" none="<__trans phrase="No TrackBacks">"$></h2>
 
-    <mt:ignore><!-- Display TrackBack details if TrackBacks are being accepted --></mt:ignore>
-    <MTIfPingsAccepted>
+    <mt:Ignore><!-- Display TrackBack details if TrackBacks are being accepted --></mt:Ignore>
+    <mt:IfPingsAccepted>
     <div class="trackbacks-info">
-        <p><__trans phrase="TrackBack URL: [_1]" params="<$MTEntryTrackbackLink$>"></p>
+        <p><__trans phrase="TrackBack URL: [_1]" params="<$mt:EntryTrackbackLink$>"></p>
     </div>
-    </MTIfPingsAccepted>
+    </mt:IfPingsAccepted>
 
 
-    <mt:ignore><!-- Display TrackBacks --></mt:ignore>
-    <MTPings>
-        <MTPingsHeader>
+    <mt:Ignore><!-- Display TrackBacks --></mt:Ignore>
+    <mt:Pings>
+        <mt:PingsHeader>
     <div class="trackbacks-content">
-        </MTPingsHeader>
-        <div class="trackback" id="ping-<$MTPingID$>">
+        </mt:PingsHeader>
+        <div class="trackback" id="ping-<$mt:PingID$>">
             <div class="inner">
                 <div class="trackback-header">
                     <div class="asset-meta">
-                        <__trans phrase="<a href="[_1]">[_2]</a> from [_3] on <a href="[_4]">[_5]</a>" params="<$MTPingURL$>%%<$MTPingTitle$>%%<$MTPingBlogName$>%%#ping-<$MTPingID$>%%<$MTPingDate$>">
+                        <__trans phrase="<a href="[_1]">[_2]</a> from [_3] on <a href="[_4]">[_5]</a>" params="<$mt:PingURL$>%%<$mt:PingTitle$>%%<$mt:PingBlogName$>%%#ping-<$mt:PingID$>%%<$mt:PingDate$>">
                     </div>
                 </div>
                 <div class="trackback-content">
                     <p>
-                        <__trans phrase="[_1] <a href="[_2]">Read More</a>" params="<$MTPingExcerpt$>%%<$MTPingURL$>">
+                        <__trans phrase="[_1] <a href="[_2]">Read More</a>" params="<$mt:PingExcerpt$>%%<$mt:PingURL$>">
                     </p>
                 </div>
             </div>
         </div>
-        <MTPingsFooter>
+        <mt:PingsFooter>
     </div>
-        </MTPingsFooter>
-    </MTPings>
+        </mt:PingsFooter>
+    </mt:Pings>
 </div>
-</MTIfPingsActive>
+</mt:IfPingsActive>
Index: /branches/release-40/default_templates/sidebar.mtml
===================================================================
--- /branches/release-40/default_templates/sidebar.mtml (revision 1709)
+++ /branches/release-40/default_templates/sidebar.mtml (revision 2603)
@@ -1,3 +1,3 @@
-<mt:ignore><!-- 
+<mt:Ignore><!-- 
 #
 #  The sidebar is made up of one or two columns.
@@ -5,5 +5,5 @@
 #  For 3-column designs, beta and gamma.
 #
---></mt:ignore>
+--></mt:Ignore>
 
 
@@ -11,11 +11,11 @@
     <div id="beta-inner">
 
-<mt:if name="page_columns" eq="2">
-    <mt:ignore><!-- Use the 2-column layout Sidebar if page layout is layout-wt or layout-tw. --></mt:ignore>
+<mt:If name="page_columns" eq="2">
+    <mt:Ignore><!-- Use the 2-column layout Sidebar if page layout is layout-wt or layout-tw. --></mt:Ignore>
     <$mt:WidgetSet name="<__trans phrase="2-column layout - Sidebar">"$>
-<mt:else name="page_columns" eq="3">
-    <mt:ignore><!-- Use the 3-column layout Primary Sidebar if page layout is layout-wtt or layout-twt. --></mt:ignore>
+<mt:Else name="page_columns" eq="3">
+    <mt:Ignore><!-- Use the 3-column layout Primary Sidebar if page layout is layout-wtt or layout-twt. --></mt:Ignore>
     <$mt:WidgetSet name="<__trans phrase="3-column layout - Primary Sidebar">"$>
-</mt:if>
+</mt:If>
 
     </div>
@@ -23,6 +23,6 @@
 
 
-<mt:if name="page_columns" eq="3">
-    <mt:ignore><!-- Use the 3-column layout Secondary Sidebar if page layout is layout-wtt or layout-twt. --></mt:ignore>
+<mt:If name="page_columns" eq="3">
+    <mt:Ignore><!-- Use the 3-column layout Secondary Sidebar if page layout is layout-wtt or layout-twt. --></mt:Ignore>
 <div id="gamma">
     <div id="gamma-inner">
@@ -30,3 +30,3 @@
     </div>
 </div>
-</mt:if>
+</mt:If>
Index: /branches/release-40/default_templates/banner_footer.mtml
===================================================================
--- /branches/release-40/default_templates/banner_footer.mtml (revision 1851)
+++ /branches/release-40/default_templates/banner_footer.mtml (revision 2603)
@@ -7,11 +7,11 @@
                 </div>
             </div>
-<MTBlogIfCCLicense>
+<mt:BlogIfCCLicense>
             <div class="widget-creative-commons widget">
                 <div class="widget-content">
-                    <__trans phrase="This blog is licensed under a <a href="[_1]">Creative Commons License</a>." params="<$MTBlogCCLicenseURL$>">
+                    <__trans phrase="This blog is licensed under a <a href="[_1]">Creative Commons License</a>." params="<$mt:BlogCCLicenseURL$>">
                 </div>
             </div>
-</MTBlogIfCCLicense>
+</mt:BlogIfCCLicense>
         </div>
     </div>
Index: /branches/release-40/default_templates/styles.mtml
===================================================================
--- /branches/release-40/default_templates/styles.mtml (revision 1423)
+++ /branches/release-40/default_templates/styles.mtml (revision 2603)
@@ -1,2 +1,2 @@
-@import url(<$MTStaticWebPath$>themes-base/blog.css);
-@import url(<$MTStaticWebPath$>themes/minimalist-red/screen.css);
+@import url(<$mt:StaticWebPath$>themes-base/blog.css);
+@import url(<$mt:StaticWebPath$>themes/minimalist-red/screen.css);
Index: /branches/release-40/default_templates/html_head.mtml
===================================================================
--- /branches/release-40/default_templates/html_head.mtml (revision 2239)
+++ /branches/release-40/default_templates/html_head.mtml (revision 2603)
@@ -1,7 +1,7 @@
-<meta http-equiv="Content-Type" content="text/html; charset=<$MTPublishCharset$>" />
-<meta name="generator" content="<$MTProductName version="1"$>" />
-<link rel="stylesheet" href="<$MTLink template="styles"$>" type="text/css" />
-<link rel="start" href="<$MTBlogURL$>" title="Home" />
-<link rel="alternate" type="application/atom+xml" title="Recent Entries" href="<$MTLink template="feed_recent"$>" />
-<script type="text/javascript" src="<$MTLink template="javascript"$>"></script>
-<$MTCCLicenseRDF$>
+<meta http-equiv="Content-Type" content="text/html; charset=<$mt:PublishCharset$>" />
+<meta name="generator" content="<$mt:ProductName version="1"$>" />
+<link rel="stylesheet" href="<$mt:Link template="styles"$>" type="text/css" />
+<link rel="start" href="<$mt:BlogURL$>" title="Home" />
+<link rel="alternate" type="application/atom+xml" title="Recent Entries" href="<$mt:Link template="feed_recent"$>" />
+<script type="text/javascript" src="<$mt:Link template="javascript"$>"></script>
+<$mt:CCLicenseRDF$>
Index: /branches/release-40/default_templates/comments.mtml
===================================================================
--- /branches/release-40/default_templates/comments.mtml (revision 2394)
+++ /branches/release-40/default_templates/comments.mtml (revision 2603)
@@ -1,64 +1,64 @@
-<mt:ignore>
+<mt:Ignore>
 <!-- Display comments for the entry/page or commenting form if entry/page is accepting comments -->
-</mt:ignore>
-<MTIfCommentsActive>
+</mt:Ignore>
+<mt:IfCommentsActive>
 <div id="comments" class="comments">
 
 
-    <mt:ignore>
+    <mt:Ignore>
     <!-- Display comments -->
-    </mt:ignore>
-    <MTComments>
-        <MTCommentsHeader>
-    <h2 class="comments-header"><$MTEntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></h2>
+    </mt:Ignore>
+    <mt:Comments>
+        <mt:CommentsHeader>
+    <h2 class="comments-header"><$mt:EntryCommentCount singular="<__trans phrase="1 Comment">" plural="<__trans phrase="# Comments">" none="<__trans phrase="No Comments">"$></h2>
     <div class="comments-content">
-        </MTCommentsHeader>
-        <div id="comment-<$MTCommentID$>" class="comment<mt:IfCommentParent> comment-reply</mt:IfCommentParent>">
+        </mt:CommentsHeader>
+        <div id="comment-<$mt:CommentID$>" class="comment<mt:IfCommentParent> comment-reply</mt:IfCommentParent>">
             <div class="inner">
                 <div class="comment-header">
                     <div class="asset-meta">
                         <span class="byline">
-                            <$MTCommentAuthorIdentity$>
+                            <$mt:CommentAuthorIdentity$>
         <mt:IfCommentParent>
-                            <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>">
-        <mt:else>
-                            <span class="vcard author"><$MTCommentAuthorLink$></span>
+                            <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$mt:CommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>">
+        <mt:Else>
+                            <span class="vcard author"><$mt:CommentAuthorLink$></span>
         </mt:IfCommentParent>
-                            | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a>
-        <MTIfCommentsAccepted>
-                            | <$MTCommentReplyLink$>
-        </MTIfCommentsAccepted>
+                            | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a>
+        <mt:IfCommentsAccepted>
+                            | <$mt:CommentReplyLink$>
+        </mt:IfCommentsAccepted>
                         </span>
                     </div>
                 </div>
                 <div class="comment-content">
-                    <$MTCommentBody$>
+                    <$mt:CommentBody$>
                 </div>
             </div>
         </div>
-        <MTCommentsFooter>
+        <mt:CommentsFooter>
     </div>
-        </MTCommentsFooter>
-    </MTComments>
+        </mt:CommentsFooter>
+    </mt:Comments>
 
 
-    <mt:ignore>
+    <mt:Ignore>
     <!-- Display commenting form if entry/page is accepting comments -->
-    </mt:ignore>
-    <MTIfCommentsAccepted>
+    </mt:Ignore>
+    <mt:IfCommentsAccepted>
     <div class="comments-open" id="comments-open">
         <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
         <div class="comments-open-content">
 
-        <mt:ignore>
+        <mt:Ignore>
         <!-- Display greeting for users if blog allows users to register locally -->
-        </mt:ignore>
+        </mt:Ignore>
             <div id="comment-greeting"></div>
 
-            <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
+            <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
                 <input type="hidden" name="static" value="1" />
-                <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
-                <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
-                <input type="hidden" name="parent_id" value="<$MTCommentParentID$>" id="comment-parent-id" />
+                <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
+                <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
+                <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id" />
                 <input type="hidden" name="armor" value="1" />
                 <input type="hidden" name="preview" value="" />
@@ -88,5 +88,5 @@
                 <div id="comments-open-text">
                     <label for="comment-text"><__trans phrase="Comments">
-                    <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
+                    <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label>
                     <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtCommentFormOnFocus()"></textarea>
                 </div>
@@ -101,7 +101,7 @@
         </div>
     </div>
-    </MTIfCommentsAccepted>
+    </mt:IfCommentsAccepted>
 
 
 </div>
-</MTIfCommentsActive>
+</mt:IfCommentsActive>
Index: /branches/release-40/default_templates/search_results.mtml
===================================================================
--- /branches/release-40/default_templates/search_results.mtml (revision 2463)
+++ /branches/release-40/default_templates/search_results.mtml (revision 2603)
@@ -5,13 +5,13 @@
     <script type="text/javascript">
     /* <![CDATA[ */
-    var user = <$MTUserSessionState$>;
+    var user = <$mt:UserSessionState$>;
     /* ]]> */
     </script>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Search Results"></title>
-    <MTIgnore>Below Javascript adds ajax search capability</MTIgnore>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Search Results"></title>
+    <mt:Ignore>Below Javascript adds ajax search capability</mt:Ignore>
     <script type="text/javascript">
     /* <![CDATA[ */
-    <MTIfMoreResults>
+    <mt:IfMoreResults>
     function getResults(page) {
         page = parseInt(page);
@@ -58,18 +58,18 @@
         return false;
     }
-    <MTElse><MTIfPreviousResults>
+    <mt:Else><mt:IfPreviousResults>
     function swapContent(direction) {
     	return true;
-    }</MTIfPreviousResults>
-    </MTIfMoreResults>
+    }</mt:IfPreviousResults>
+    </mt:IfMoreResults>
     /* ]]> */
     </script>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-search-results <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-search-results <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -81,56 +81,56 @@
                         <div id="alpha-inner">
 
-<mt:ignore><!--
+<mt:Ignore><!--
     Below is the block to show search results.
     This makes an independent block to support
     Ajax-based background retrieval of the next search results.
---></mt:ignore>
-<MTSetVarTemplate id="search_results" name="search_results">  
-<MTSearchResults>
-    <MTSearchResultsHeader>
+--></mt:Ignore>
+<mt:SetVarTemplate id="search_results" name="search_results">  
+<mt:SearchResults>
+    <mt:SearchResultsHeader>
                             <div id="search-results">
-                                <span id="current-page" class="hidden"><MTCurrentPage></span>
+                                <span id="current-page" class="hidden"><$mt:CurrentPage$></span>
                                 <h1 id="page-title" class="search-results-header">
-        <MTIfStraightSearch>
-                                    <__trans phrase="Results matching &ldquo;[_1]&rdquo;" params="<$MTSearchString$>">
-        </MTIfStraightSearch>
-        <MTIfTagSearch>
-                                    <__trans phrase="Results tagged &ldquo;[_1]&rdquo;" params="<$MTSearchString$>">
-        </MTIfTagSearch>
+        <mt:IfStraightSearch>
+                                    <__trans phrase="Results matching &ldquo;[_1]&rdquo;" params="<$mt:SearchString$>">
+        </mt:IfStraightSearch>
+        <mt:IfTagSearch>
+                                    <__trans phrase="Results tagged &ldquo;[_1]&rdquo;" params="<$mt:SearchString$>">
+        </mt:IfTagSearch>
                                 </h1>
                                 <div class="search-results-container autopagerize_page_element">
-    </MTSearchResultsHeader>
-                                    <$MTInclude module="<__trans phrase="Entry Summary">" hide_counts="1"$>
-    <MTSearchResultsFooter>
+    </mt:SearchResultsHeader>
+                                    <$mt:Include module="<__trans phrase="Entry Summary">" hide_counts="1"$>
+    <mt:SearchResultsFooter>
                                 </div><div class="autopagerize_insert_before"></div>
 
-    <MTIgnore><!-- Used with the ajax search capability of the new search class --></MTIgnore>
+    <mt:Ignore><!-- Used with the ajax search capability of the new search class --></mt:Ignore>
                                 <div class="content-nav">
-                                    <MTIfPreviousResults><a href="<MTPreviousLink>" rel="prev" onclick="return swapContent(-1);">&lt; <__trans phrase="Previous"></a>&nbsp;&nbsp;</MTIfPreviousResults><MTPagerBlock><MTIfCurrentPage><MTVar name="__value__"><MTElse><a href="<MTPagerLink>"><MTVar name="__value__"></a></MTIfCurrentPage><mt:unless name="__last__">&nbsp;</mt:unless></MTPagerBlock><MTIfMoreResults>&nbsp;&nbsp;<a href="<MTNextLink>" rel="next" onclick="return swapContent();"><__trans phrase="Next"> &gt;</a></MTIfMoreResults>
+                                    <mt:IfPreviousResults><a href="<$mt:PreviousLink$>" rel="prev" onclick="return swapContent(-1);">&lt; <__trans phrase="Previous"></a>&nbsp;&nbsp;</mt:IfPreviousResults><mt:PagerBlock><mt:IfCurrentPage><$mt:Var name="__value__"$><mt:Else><a href="<$mt:PagerLink$>"><$mt:Var name="__value__"$></a></mt:IfCurrentPage><mt:Unless name="__last__">&nbsp;</mt:Unless></mt:PagerBlock><mt:IfMoreResults>&nbsp;&nbsp;<a href="<$mt:NextLink$>" rel="next" onclick="return swapContent();"><__trans phrase="Next"> &gt;</a></mt:IfMoreResults>
                                 </div>
                             </div>
-    </MTSearchResultsFooter>
-</MTSearchResults>
-</MTSetVarTemplate>
-<mt:ignore><!-- Display search results constructed in the block above --></mt:ignore>
-<mt:var name="search_results">
+    </mt:SearchResultsFooter>
+</mt:SearchResults>
+</mt:SetVarTemplate>
+<mt:Ignore><!-- Display search results constructed in the block above --></mt:Ignore>
+<$mt:Var name="search_results"$>
 
 
-<mt:ignore><!-- Display no results message --></mt:ignore>
-<MTNoSearchResults>
+<mt:Ignore><!-- Display no results message --></mt:Ignore>
+<mt:NoSearchResults>
                             <h1 id="page-title" class="search-results-header">
-    <MTIfStraightSearch>
-                                <__trans phrase="Results matching &ldquo;[_1]&rdquo;" params="<$MTSearchString$>">
-    </MTIfStraightSearch>
-    <MTIfTagSearch>
-                                <__trans phrase="Results tagged &ldquo;[_1]&rdquo;" params="<$MTSearchString$>">
-    </MTIfTagSearch>
+    <mt:IfStraightSearch>
+                                <__trans phrase="Results matching &ldquo;[_1]&rdquo;" params="<$mt:SearchString$>">
+    </mt:IfStraightSearch>
+    <mt:IfTagSearch>
+                                <__trans phrase="Results tagged &ldquo;[_1]&rdquo;" params="<$mt:SearchString$>">
+    </mt:IfTagSearch>
                             </h1>
-                            <p><__trans phrase="No results found for &ldquo;[_1]&rdquo;." params="<$MTSearchString$>"></p>
-</MTNoSearchResults>
+                            <p><__trans phrase="No results found for &ldquo;[_1]&rdquo;." params="<$mt:SearchString$>"></p>
+</mt:NoSearchResults>
 
 
-<mt:ignore><!-- Display instructions for searching if search script was accessed without a query --></mt:ignore>
-<MTNoSearch>
+<mt:Ignore><!-- Display instructions for searching if search script was accessed without a query --></mt:Ignore>
+<mt:NoSearch>
                             <h1 id="page-title" class="search-results-header"><__trans phrase="Instructions"></h1>
                             <p><__trans phrase="By default, this search engine looks for all words in any order. To search for an exact phrase, enclose the phrase in quotes:"></p>
@@ -143,21 +143,21 @@
                                 <p><code><__trans phrase="publishing NOT personal"></code></p>
                             </blockquote>
-</MTNoSearch>
+</mt:NoSearch>
 
-<MTIgnore><!-- Used with the ajax search capability of the new search class --></MTIgnore>
-<MTIfMoreResults>
+<mt:Ignore><!-- Used with the ajax search capability of the new search class --></mt:Ignore>
+<mt:IfMoreResults>
 <script type="text/javascript">
 <!--
 var div = document.getElementById('search-results');
 var results = {
-    '<MTCurrentPage>': {
+    '<$mt:CurrentPage$>': {
         'content': div.innerHTML,
-        'next_url': '<MTNextLink>'
+        'next_url': '<$mt:NextLink$>'
     }
 };
-var timer = window.setTimeout("getResults(" + <MTCurrentPage> + ")", 1*1000);
+var timer = window.setTimeout("getResults(" + <$mt:CurrentPage$> + ")", 1*1000);
 //-->
 </script>
-</MTIfMoreResults>
+</mt:IfMoreResults>
 
 
@@ -165,5 +165,5 @@
                     </div>
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -172,5 +172,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/rsd.mtml
===================================================================
--- /branches/release-40/default_templates/rsd.mtml (revision 1098)
+++ /branches/release-40/default_templates/rsd.mtml (revision 2603)
@@ -1,13 +1,13 @@
-<$MTHTTPContentType type="application/rsd+xml"$><?xml version="1.0"?>
+<$mt:HTTPContentType type="application/rsd+xml"$><?xml version="1.0"?>
 <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
 <service>
-<engineName><$MTProductName version="1"$></engineName>
+<engineName><$mt:ProductName version="1"$></engineName>
 <engineLink>http://www.sixapart.com/movabletype/</engineLink>
-<homePageLink><$MTBlogURL$></homePageLink>
+<homePageLink><$mt:BlogURL$></homePageLink>
 <apis>
-<api name="MetaWeblog" preferred="true" apiLink="<$MTCGIPath$><$MTXMLRPCScript$>" blogID="<$MTBlogID$>" />
-<api name="MovableType" preferred="false" apiLink="<$MTCGIPath$><$MTXMLRPCScript$>" blogID="<$MTBlogID$>" />
-<api name="Blogger" preferred="false" apiLink="<$MTCGIPath$><$MTXMLRPCScript$>" blogID="<$MTBlogID$>" />
-<api name="Atom" preferred="false" apiLink="<$MTCGIPath$><$MTAtomScript$>/weblog" blogID="<$MTBlogID$>" />
+<api name="MetaWeblog" preferred="true" apiLink="<$mt:CGIPath$><$mt:XMLRPCScript$>" blogID="<$mt:BlogID$>" />
+<api name="MovableType" preferred="false" apiLink="<$mt:CGIPath$><$mt:XMLRPCScript$>" blogID="<$mt:BlogID$>" />
+<api name="Blogger" preferred="false" apiLink="<$mt:CGIPath$><$mt:XMLRPCScript$>" blogID="<$mt:BlogID$>" />
+<api name="Atom" preferred="false" apiLink="<$mt:CGIPath$><$mt:AtomScript$>/weblog" blogID="<$mt:BlogID$>" />
 </apis>
 </service>
Index: /branches/release-40/default_templates/dynamic_error.mtml
===================================================================
--- /branches/release-40/default_templates/dynamic_error.mtml (revision 2101)
+++ /branches/release-40/default_templates/dynamic_error.mtml (revision 2603)
@@ -3,13 +3,13 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Page Not Found"></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Page Not Found"></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-dynamic-error <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-dynamic-error <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -22,5 +22,5 @@
                             <h1 id="page-title"><__trans phrase="Page Not Found"></h1>
                             <blockquote>
-                                <strong><$MTErrorMessage$></strong>
+                                <strong><$mt:ErrorMessage$></strong>
                             </blockquote>
                         </div>
@@ -28,5 +28,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -35,5 +35,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/tag_cloud.mtml
===================================================================
--- /branches/release-40/default_templates/tag_cloud.mtml (revision 2439)
+++ /branches/release-40/default_templates/tag_cloud.mtml (revision 2603)
@@ -4,5 +4,5 @@
         <ul class="widget-list">
     <mt:Tags top="20">
-            <li class="rank-<$mt:TagRank max="10"$> widget-list-item"><a href="javascript:void(0)" onclick="location.href='<$MTTagSearchLink encode_js="1"$>';return false;" rel="tag"><$mt:TagName$></a></li>
+            <li class="rank-<$mt:TagRank max="10"$> widget-list-item"><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;" rel="tag"><$mt:TagName$></a></li>
     </mt:Tags>
         </ul>
Index: /branches/release-40/default_templates/comment_preview.mtml
===================================================================
--- /branches/release-40/default_templates/comment_preview.mtml (revision 2394)
+++ /branches/release-40/default_templates/comment_preview.mtml (revision 2603)
@@ -5,17 +5,17 @@
     <script type="text/javascript">
     /* <![CDATA[ */
-    var user = <$MTUserSessionState$>;
+    var user = <$mt:UserSessionState$>;
     var is_preview = true;
     /* ]]> */
     </script>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="Previewing your Comment"></title>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-comment-preview <$MTVar name="page_layout"$>" onload="mtEntryOnLoad()">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-comment-preview <$mt:Var name="page_layout"$>" onload="mtEntryOnLoad()">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -28,25 +28,25 @@
 
 
-                            <h1 id="page-title"><$MTVar name="page_title"$></h1>
+                            <h1 id="page-title"><$mt:Var name="page_title"$></h1>
 
 
-<mt:ignore><!-- Comment Preview --></mt:ignore>
-                            <div class="comment" id="comment-<$MTCommentID$>">
+<mt:Ignore><!-- Comment Preview --></mt:Ignore>
+                            <div class="comment" id="comment-<$mt:CommentID$>">
                                 <div class="inner">
                                     <div class="comment-header">
                                         <div class="asset-meta">
                                             <span class="byline">
-                                                <$MTCommentAuthorIdentity$>
+                                                <$mt:CommentAuthorIdentity$>
     <mt:IfCommentParent>
-                                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$MTCommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>">
-    <mt:else>
-                                                <span class="vcard author"><$MTCommentAuthorLink$></span>
+                                                <__trans phrase="[_1] replied to <a href="[_2]">comment from [_3]</a>" params="<span class="vcard author"><$mt:CommentAuthorLink$></span>%%<mt:CommentParent><$mt:CommentLink$></mt:CommentParent>%%<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>">
+    <mt:Else>
+                                                <span class="vcard author"><$mt:CommentAuthorLink$></span>
     </mt:IfCommentParent>
-                                                | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$MTCommentDate format_name="iso8601"$>"><$MTCommentDate$></abbr></a>
+                                                | <a href="<$mt:CommentLink$>"><abbr class="published" title="<$mt:CommentDate format_name="iso8601"$>"><$mt:CommentDate$></abbr></a>
                                             </span>
                                         </div>
                                     </div>
                                     <div class="comment-content">
-                                        <$MTCommentBody$>
+                                        <$mt:CommentBody$>
                                     </div>
                                 </div>
@@ -54,41 +54,41 @@
 
 
-<mt:ignore><!-- Comment Form --></mt:ignore>
+<mt:Ignore><!-- Comment Form --></mt:Ignore>
                             <div class="comments-open" id="comments-open">
                                 <h2 class="comments-open-header"><__trans phrase="Leave a comment"></h2>
                                 <div class="comments-open-content">
                                     <div id="comment-greeting"></div>
-                                    <form method="post" action="<$MTCGIPath$><$MTCommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
+                                    <form method="post" action="<$mt:CGIPath$><$mt:CommentScript$>" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">
                                         <input type="hidden" name="static" value="1" />
                                         <input type="hidden" name="armor" value="1" />
                                         <input type="hidden" name="preview" value="" />
-                                        <input type="hidden" name="entry_id" value="<$MTEntryID$>" />
-                                        <input type="hidden" name="__lang" value="<$MTBlogLanguage$>" />
+                                        <input type="hidden" name="entry_id" value="<$mt:EntryID$>" />
+                                        <input type="hidden" name="__lang" value="<$mt:BlogLanguage$>" />
 <mt:IfCommentParent>
-                                            <input type="hidden" name="parent_id" value="<$mt:CommentParentId$>" id="comment-parent-id">
+                                            <input type="hidden" name="parent_id" value="<$mt:CommentParentID$>" id="comment-parent-id">
 </mt:IfCommentParent>
                                         <div id="comments-open-data">
                                             <div id="comment-form-name">
                                                 <label for="comment-author"><__trans phrase="Name"></label>
-                                                <input id="comment-author" name="author" size="30" value="<$MTCommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" />
+                                                <input id="comment-author" name="author" size="30" value="<$mt:CommentAuthor encode_html="1"$>" onfocus="mtShowCaptcha()" />
                                             </div>
                                             <div id="comment-form-email">
                                                 <label for="comment-email"><__trans phrase="Email Address"></label>
-                                                <input id="comment-email" name="email" size="30" value="<$MTCommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" />
+                                                <input id="comment-email" name="email" size="30" value="<$mt:CommentEmail encode_html="1"$>" onfocus="mtShowCaptcha()" />
                                             </div>
                                             <div id="comment-form-url">
                                                 <label for="comment-url"><__trans phrase="URL"></label>
-                                                <input id="comment-url" name="url" size="30" value="<$MTCommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" />
+                                                <input id="comment-url" name="url" size="30" value="<$mt:CommentURL encode_html="1"$>" onfocus="mtShowCaptcha()" />
                                             </div>
                                         </div>
 <mt:IfCommentParent>
                                         <div id="comment-form-reply">
-                                            <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentId$>" checked="checked" onclick="mtSetCommentParentID()" />
-                                            <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$MTCommentAuthor$></mt:CommentParent>"></label>
+                                            <input type="checkbox" id="comment-reply" name="comment_reply" value="<$mt:CommentParentID$>" checked="checked" onclick="mtSetCommentParentID()" />
+                                            <label for="comment-reply" id="comment-reply-label"><__trans phrase="Replying to comment from [_1]" params="<mt:CommentParent><$mt:CommentAuthor$></mt:CommentParent>"></label>
                                         </div>
 </mt:IfCommentParent>
                                         <div id="comments-open-text">
-                                            <label for="comment-text"><__trans phrase="Comments"> <MTIfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></MTIfAllowCommentHTML></label>
-                                            <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$MTCommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea>
+                                            <label for="comment-text"><__trans phrase="Comments"> <mt:IfAllowCommentHTML><__trans phrase="(You may use HTML tags for style)"></mt:IfAllowCommentHTML></label>
+                                            <textarea id="comment-text" name="text" rows="15" cols="50" onfocus="mtShowCaptcha()"><$mt:CommentBody autolink="0" sanitize="0" convert_breaks="0" encode_html="1"$></textarea>
                                         </div>
                                         <div id="comments-open-captcha"></div>
@@ -96,5 +96,5 @@
                                             <input type="submit" accesskey="v" name="preview_button" id="comment-preview" value="<__trans phrase="Preview">" onclick="this.form.preview.value='1';" />
                                             <input type="submit" accesskey="s" name="post" id="comment-submit" value="<__trans phrase="Submit">" />
-                                            <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$MTEntryPermalink$>'" />
+                                            <input type="button" name="cancel" id="comment-cancel" value="<__trans phrase="Cancel">" onclick="window.location='<$mt:EntryPermalink$>'" />
                                         </div>
                                     </form>
@@ -105,5 +105,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -112,5 +112,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/monthly_entry_listing.mtml
===================================================================
--- /branches/release-40/default_templates/monthly_entry_listing.mtml (revision 2101)
+++ /branches/release-40/default_templates/monthly_entry_listing.mtml (revision 2603)
@@ -3,20 +3,20 @@
 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
 <head>
-    <$mt:include module="<__trans phrase="HTML Head">"$>
-    <title><$MTBlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></title>
-<mt:ignore>
+    <$mt:Include module="<__trans phrase="HTML Head">"$>
+    <title><$mt:BlogName encode_html="1"$>: <__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></title>
+<mt:Ignore>
     <!-- Include Next and Previous links if publishing a date-based archive -->
-</mt:ignore>
-<MTIf name="datebased_archive">
-    <MTArchivePrevious><link rel="prev" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchivePrevious>
-    <MTArchiveNext><link rel="next" href="<$MTArchiveLink$>" title="<$MTArchiveTitle encode_html="1"$>" /></MTArchiveNext>
-</MTIf>
+</mt:Ignore>
+<mt:If name="datebased_archive">
+    <mt:ArchivePrevious><link rel="prev" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchivePrevious>
+    <mt:ArchiveNext><link rel="next" href="<$mt:ArchiveLink$>" title="<$mt:ArchiveTitle encode_html="1"$>" /></mt:ArchiveNext>
+</mt:If>
 </head>
-<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<MTVar name="archive_class"> <$MTVar name="page_layout"$>">
+<body id="<$mt:BlogTemplateSetID$>" class="mt-archive-listing mt-<$mt:Var name="archive_class"$> <$mt:Var name="page_layout"$>">
     <div id="container">
         <div id="container-inner">
 
 
-            <$mt:include module="<__trans phrase="Banner Header">"$>
+            <$mt:Include module="<__trans phrase="Banner Header">"$>
 
 
@@ -29,20 +29,20 @@
 
 
-                            <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$MTArchiveTitle$>"></h1>
+                            <h1 id="page-title" class="archive-title"><__trans phrase="[_1] Archives" params="<$mt:ArchiveTitle$>"></h1>
 
 
-<mt:ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:ignore>
-<MTUnless name="datebased_archive"><$mt:setvar name="limit" value="auto"$></MTUnless>
-<MTEntries limit="$limit">
-                            <mt:ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:ignore>
-                            <$mt:include module="<__trans phrase="Entry Summary">"$>
-</MTEntries>
+<mt:Ignore><!-- Limit number of entries to the number set in Blog Entry Settings --></mt:Ignore>
+<mt:Unless name="datebased_archive"><$mt:SetVar name="limit" value="auto"$></mt:Unless>
+<mt:Entries limit="$limit">
+                            <mt:Ignore><!-- Use the Entry Summary module for each entry published on this page --></mt:Ignore>
+                            <$mt:Include module="<__trans phrase="Entry Summary">"$>
+</mt:Entries>
 
 
                             <div class="content-nav">
-                                <MTArchivePrevious><a href="<$MTArchiveLink$>">&laquo; <$MTArchiveTitle$></a> |</MTArchivePrevious>
-                                <a href="<$MTLink template="main_index"$>"><__trans phrase="Main Index"></a> |
-                                <a href="<$MTLink template="archive_index"$>"><__trans phrase="Archives"></a>
-                                <MTArchiveNext>| <a href="<$MTArchiveLink$>"><$MTArchiveTitle$> &raquo;</a></MTArchiveNext>
+                                <mt:ArchivePrevious><a href="<$mt:ArchiveLink$>">&laquo; <$mt:ArchiveTitle$></a> |</mt:ArchivePrevious>
+                                <a href="<$mt:Link template="main_index"$>"><__trans phrase="Main Index"></a> |
+                                <a href="<$mt:Link template="archive_index"$>"><__trans phrase="Archives"></a>
+                                <mt:ArchiveNext>| <a href="<$mt:ArchiveLink$>"><$mt:ArchiveTitle$> &raquo;</a></mt:ArchiveNext>
                             </div>
 
@@ -52,5 +52,5 @@
 
 
-                    <$MTInclude module="<__trans phrase="Sidebar">"$>
+                    <$mt:Include module="<__trans phrase="Sidebar">"$>
 
 
@@ -59,5 +59,5 @@
 
 
-            <$mt:include module="<__trans phrase="Banner Footer">"$>
+            <$mt:Include module="<__trans phrase="Banner Footer">"$>
 
 
Index: /branches/release-40/default_templates/search.mtml
===================================================================
--- /branches/release-40/default_templates/search.mtml (revision 2455)
+++ /branches/release-40/default_templates/search.mtml (revision 2603)
@@ -6,5 +6,5 @@
 <mt:If name="search_results">
             <input type="hidden" name="IncludeBlogs" value="<$mt:SearchIncludeBlogs$>" />
-            <MTIgnore>
+            <mt:Ignore>
             <!-- use these options only with MT::App::Search::Legacy -->
             <ul class="search-options">
@@ -12,9 +12,9 @@
                 <li><input type="checkbox" name="RegexSearch" /> <__trans phrase="Regex search"></li>
             </ul>
-            </MTIgnore>
-<mt:else>
+            </mt:Ignore>
+<mt:Else>
             <input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>" />
-</mt:if>
-            <input type="hidden" name="limit" value="<MTSearchMaxResults>" />
+</mt:If>
+            <input type="hidden" name="limit" value="<$mt:SearchMaxResults$>" />
             <input type="submit" accesskey="4" value="<__trans phrase="Search">" />
         </form>
@@ -28,5 +28,5 @@
         <ul class="widget-list">
         <mt:Tags>
-            <li class="widget-list-item"><a href="javascript:void(0)" onclick="location.href='<$MTTagSearchLink encode_js="1"$>';return false;"><__trans phrase="[_1] ([_2])" params="<$mt:TagName$>%%<$mt:TagCount$>"></a></li>
+            <li class="widget-list-item"><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;"><__trans phrase="[_1] ([_2])" params="<$mt:TagName$>%%<$mt:TagCount$>"></a></li>
         </mt:Tags>
         </ul>
Index: /branches/release-40/default_templates/commenter_confirm.mtml
===================================================================
--- /branches/release-40/default_templates/commenter_confirm.mtml (revision 1102)
+++ /branches/release-40/default_templates/commenter_confirm.mtml (revision 2603)
@@ -1,16 +1,16 @@
-<__trans phrase="Thank you registering for an account to comment on [_1]." params="<$MTBlogName$>"> 
+<__trans phrase="Thank you registering for an account to comment on [_1]." params="<$mt:BlogName$>"> 
 
-<__trans phrase="For your own security and to prevent fraud, we ask that you please confirm your account and email address before continuing. Once confirmed you will immediately be allowed to comment on [_1]." params="<$MTBlogName$>">
+<__trans phrase="For your own security and to prevent fraud, we ask that you please confirm your account and email address before continuing. Once confirmed you will immediately be allowed to comment on [_1]." params="<$mt:BlogName$>">
 
 <__trans phrase="To confirm your account, please click on or cut and paste the following URL into a web browser:">
 
-<mt:var name="confirm_url">
+<$mt:Var name="confirm_url"$>
 
-<__trans phrase="If you did not make this request, or you don't want to register for an account to comment on [_1], then no further action is required." params="<$MTBlogName$>">
+<__trans phrase="If you did not make this request, or you don't want to register for an account to comment on [_1], then no further action is required." params="<$mt:BlogName$>">
 
 <__trans phrase="Thank you very much for your understanding.">
 
 <__trans phrase="Sincerely,">
-<mt:ifnonempty tag="AuthorDisplayName"><$MTAuthorDisplayName$><mt:else>Movable Type</mt:ifnonempty>
+<mt:IfNonEmpty tag="AuthorDisplayName"><$mt:AuthorDisplayName$><mt:Else>Movable Type</mt:IfNonEmpty>
 
-<mt:include module="<__trans phrase="Mail Footer">">
+<$mt:Include module="<__trans phrase="Mail Footer">"$>
