[interchange-cvs] CVS notice: activity by heins

interchange-cvs@lists.akopia.com interchange-cvs@lists.akopia.com
Thu Jun 14 08:39:01 2001


CVS activity by user 'heins':
interchange/lib/Vend Interpolate.pm,1.40.2.72,1.40.2.73 Parse.pm,1.12.2.21,1.12.2.22
Update of /anon_cvs/repository/interchange/lib/Vend
In directory interchange.redhat.com:/tmp/cvs-serv1798

Modified Files:
      Tag: DEV_4_7_0
	Interpolate.pm Parse.pm 
Log Message:

  * Add ability to restrict tag execution in a region. If a restricted tag
    is encountered, it is simply output. Based on an idea from Jon Jensen.

	[restrict policy=deny*|accept enable="tag1 tag2" disable="tag1 tag2"]
	restricted area
	[/restrict]

	options:

		policy     "accept" or "deny". Default is deny.
		enable     space or comma-separated list of tag names, including
		           UserTag names.
		disable    space or comma-separated list of tag names, including
		           UserTag names.

	For instance, this:

		[restrict enable=page]
		    [area something]
			[page aboutus]A link[/page]
		[/restrict]

	will output:

		[area something]
		<a href="http://sam.heins.net/cgi-bin/mfound/aboutus.html">A link</a>

	Defaults are important:

		interpolate=0
		reparse=0
	
	It would defeat the purpose to set interpolate or reparse, but it
	can be done.

  * Allow parameters for comment tag -- not parsed, but at least
    tolerated.