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

3 Comments

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

white smith

white smith on May 26, 2017, 7:38 a.m. Reply

Your post helped me to understand the main features of the new LocalBlock module and its features. But I got only minimal information form your site regarding this. since I am interested to know more, kindly include more soon. activated charcoal face mask

Leave a Comment