Not a developer? Go to MovableType.com

Plugin and Theme Directory

LocalBlock v1.00

By 紫京 ぴろり
Posted February 27, 2008, in MT Tags, Templates, Widgets.

Details

Movable Type's template variables, accessed via the GetVar and SetVar template tags, exist only in a global scope. For templates of a certain complexity, this might pose the risk of one template overwriting the variables used by another template inadvertently.

The LocalBlock plugin provides a template tag that allows template authors to establish a scope for a block of template code. Within that scope variables are localized and thus two variables existing in different scopes can share the same name without fear of conflicting with one another.


Back