{= include("docs.util"); start_docs_page(docs.technical_manual.page_titles.search); volatile.search_matches = 0; volatile.search_results = ""; # This searches a node's value for a particular phrase. # A page matches if it contains any of the words in the phrase. subroutine(search_node(string text, string phrase, string pagelink, string pagetype), ( #echo("text: " . text); string remainder = phrase; string keyword; while (matches_regular_expression(remainder, '^ *([^ ]+)(.*)$')) ( keyword = $1; remainder = $2; if (contains(lowercase(text), lowercase(keyword))) then ( volatile.search_results .= "
$docs.variables.search.pages_matched
\n"; "$docs.variables.search.no_pages_matched
\n"; ); end_docs_page(); volatile.docs_page_title = docs.technical_manual.page_titles.search; =}