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 5

Engine Compatibility

replace is not supported by the Node engine.

replace(<sel>, <url>)

Replace the page element (usually a <div>) with the element selected by <sel> with content given by the URL.

replace("#foo", "http://apps.kynetx.com/")

The following ruleset shows replace() being used

ruleset a1299x181 {
	meta {
		name "Replace Example"
		author "nathan cerny"
		logging off
	}
	dispatch {
		// domain "exampley.com"
	}
	rule replace_with_example is active {
      select using ".*" setting ()
      replace("#replace", "http://apps.kynetx.com/");
    }
}

The following demonstrates the preceding rule:

  • No labels