Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 1596aa0c95b4ccf7adfa8febc56cc15c > files > 73

webmake-2.4-2mdk.noarch.rpm

<wmmeta name="Title" value="The &lt;action&gt; Tag" />
<wmmeta name="Section" value="02-tags_attrs" />
<wmmeta name="Score" value="120" />
<wmmeta name="Abstract">
hook code into WebMake logic
</wmmeta>

The &lt;action&gt; tag takes this attribute:

	__event__:	The name of the action to bind to.

The events that can be bound to are:

	__site_changed__:	WebMake has been run, and at least one file
	has been generated.  (The list of files generated can be retrieved
	using the &wmdollar;{WebMake.ChangedFiles} variable.)

The body of this tag must be a block of perl code, which will be run
if and when the event occurs.

Example
=======

<safe>
  <action event="site_changed"><{perl

	print "site was modified\n";

  }></action>
</safe>