Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

send_directive(<type>) with options

Send a directive to the endpoint. Action modifiers are used to send directive options:

append("#foo", "<p>This is the text</p>")

The following ruleset shows append() being used

ruleset a1299x164 {
	meta {
		name "Append Example"
		author "nathan cerny"
		logging off
	}
	dispatch {
		// domain "exampley.com"
	}
	rule append_example_rule {
      select using ".*"
      append("#append", "<span style=\"color:red;\">| You fired the after rule </span>");
    }
}

The following demonstrates the preceding rule:

  • No labels