Working with Template Syntax Formatting

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Assembly MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-assembly -- dnx GroupDocs.Assembly.Mcp --yes
Folders, licensing and more →
Note
The code uses some of the objects defined in The Business Layer.

Template Syntax Formats

Specifying String and Numeric Formats

Learn more about string and numeric formats here.

Template Syntax

ManagerContract Price
<<foreach [in getManagers()]>><br /><<[getName()]:upper>><<[getContracts().sum(<br /> c =><br /> c.getPrice())]:arabicDash>><br /><</foreach>>
Total:<<[getManagers().sum(<br /> m => m.getContracts().sum(<br /> c => c.getPrice()))]>>

Download Template

Get template from here.

The Code