Wrap
wrap
-
- Syntax
-
<...> | </...>
Used to wrap something. The vertical bar ("|") is the place, where your content will be inserted; the parts on the left and right of the vertical line are placed on the left and right side of the content.
Spaces between the wrap-parts and the divider ("|") are trimmed off from each part of the wrap.
If you want to use more sophisticated data functions, then you should use
std
instead ofWrap. data Wrap wrap
.A
wrap
is applied as one of the last of properties a cObject.ExamplesThis will cause the value to be wrapped in a p-tag coloring the value red:
page.10.wrap = <p class="bg-red"> | </p>
Copied!