Replace

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://www.google.com/")
This div area will have it's contents replaced with example.com's content when the example is run.


Replace Example

ruleset a60x121 {
  meta {
    name "Replace Example"
    author "Mike Grace"
    description <<
      Replace example for documentation
    >>
    logging on
  }
  dispatch {
    domain "docs.kynetx.com"
  }
  rule replace_with_example is active {
    select using "http://docs.kynetx.com/krl/kynetx-rule-language-documentation/actions/replace/" setting ()
    replace("#replacement_area", "http://example.com/");
  }
}