# Best Practices Repository

The Best Practice repository demonstrates [tag replacement techniques](/cap/best-practices/tag-replacement-techniques.md).

The initiator rule set “**BestPractices\_Init**” calls the “**SetupData**” rule set that prepares the data that will be used in the “**CreateOutput**” rule set, where the output will be produced in `html` format.

The “**CreateOutput**” rule set contains the “**Template Replacer**” rule that uses the simple tag replacer technique to replace all identifiers in the html content, with the given variable names.

The “**Fill Html List**”, “**Fill Html Options**” and “**Fill Html Table**” helper rule sets that are part of the “**HTTP Tools**” repository, use the “tag replacement with parent tag repetition technique”, allowing for the repetition of html code already found in the “`homepage.html`” file and avoiding any hard-coded html in the rules.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tomorrowx.com/cap/best-practices/best-practices-repository.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
