• Currently 4/5
  • 1
  • 2
  • 3
  • 4
  • 5
LocalBlock

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.

1 Comment

Keep up the good work Hiroyuki :) The LocalBlock is very good idea.