pp-ignore

The pp-ignore="true" attribute prevents Prisma PHP from parsing or extracting reactive variables inside the element. This is especially useful for code samples, documentation blocks, or third-party widgets where syntax may appear but should not be interpreted as a binding.

Use Cases

  • Documentation blocks displaying strings
  • Third-party widgets or injected HTML where reactivity must be avoided
  • Areas containing code examples (e.g. inside <pre> or <code>)

Behavior

  • Text nodes inside <pre>, <code>, or elements with pp-ignore="true" are skipped during mustache parsing.
  • No reactive bindings or property tracking is applied inside ignored nodes.
  • Deep children of ignored nodes are also excluded from the tree walker.

Syntax

  • <div pp-ignore="true"></div>
  • <pre><code></code></pre>

Example Usage

<div class="mockup-code" pp-ignore="true">
  <pre><code><div></div></code></pre>
</div>

<div>Hello </div> <!-- this will be reactive -->

In this example, the inside the pp-ignore region will be skipped by the reactive parser. The outside the block will be properly tracked and updated.