# $Id: MTBlock.pl,v 1.2 2003/02/27 22:15:49 akosut Exp $ # by Alexei Kosut # # is a container tag that does nothing, but you can use it # to apply global attributes (e.g., filters or encodings) to the contents, # e.g., to XML-encode a complete entry # # <$MTEntryBody$><$MTEntryMore$> # # or to HTML-encode static text inplace: # # use MT; use MT::Template::Context; use strict; use warnings; # add_conditional_tag does all the magic for us, so this tag takes # less code than this comment. MT::Template::Context->add_conditional_tag(Block => sub { 1 })