From 97579655387ebff58b29bf72aa829407ea601eb0 Mon Sep 17 00:00:00 2001 From: Guillaume Lecomte Date: Fri, 23 Feb 2024 12:12:12 +0100 Subject: [PATCH] Add documentation about accessing the CST Add a note in the README about accessing the cst. Fixes #482. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index b35a5a67..ec112fc1 100644 --- a/README.md +++ b/README.md @@ -562,6 +562,17 @@ __Usage__ Hello ``` +## Accessing the concrete syntax tree + +The syntax tree is accessible by casting the template to its concrete `FluidTemplate` type and using the `Statements` property. + +#### Source + +```csharp +var template = (FluidTemplate)iTemplate; +var statements = template.Statements; +``` +
## ASP.NET MVC View Engine