Not a developer? Go to

Plugin and Theme Directory

LocalBlock v1.00

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


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.



Pol Correy on May 12, 2008, 1:52 a.m. Reply

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

Kamilla Kamilla

Kamilla Kamilla on July 20, 2016, 10:55 a.m. Reply

Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! 192.168.o.1


monika77 on October 15, 2017, 1:48 p.m. Reply

Deliver robust, compelling applications that fully utilize the unique features and innovations of the iPhone and iPod Touch. When you touch the neck at the point just ahead of the string an fret intersection, the App shows the note and plays the tone.

Leave a Comment