Skip to main content Link Search Menu Expand Document Toggle dark mode Copy Code (external link)
paperwork.help

{{#helper_name}} : Helper Description


On this page

Summary

Brief description of what this helper does.

Based on: Link to underlying Scryber element/component

Syntax

{{#helper_name expression}}
  <!-- Content -->
{{/helper_name}}

Parameters

Parameter Type Required Description
expression Expression Yes Description of the parameter

Special Variables

Variable Description
variable Description

Examples

Basic Example

{{#helper_name model.data}}
  <p>{{this.property}}</p>
{{/helper_name}}

Data:

builder.WithData("model", new {
    data = new { property = "value" }
});

Output:

<p>value</p>

Underlying Implementation

The {{#helper_name}} helper compiles to the following Scryber template structure:

<element data-attribute="{{expression}}">
  <!-- Content -->
</element>

Brief explanation of how it works internally.


Notes

  • Additional notes
  • Implementation details
  • Common pitfalls
  • Avoid using β€œlive” data (DateTime.Now, etc.) - PDFs are static, use model data

See Also