ruleset a60x119 {
meta {name"Prepend Example"
author "Mike Grace"
description <<
Prepend example for documentation
>>
logging on
}
dispatch {
domain "docs.kynetx.com"}
global {
css <<
.inserted_span{
color: purple;}>>;}
rule the_prepender is active {
select using "http://docs.kynetx.com/krl/kynetx-rule-language-documentation/actions/prepend/"setting()
prepend(":header","<span class='inserted_span'>I'm a header! </span>");}}
Prepend
prepend(<selector>, <html>)Prepend the <html> to the inside of the element selected by <selector> as the first child.
prepend("#foo", "<p>This is the text</p>")See this action in action!