---
title: "TemplateParser Constructor "
canonical: https://customerscanvas.com/docs/cc6/C_Aurigma_DesignAtoms_Convert_TemplateParser_ctor_1_d953e28d.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Atoms .NET"
    versions: ["6.0.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# TemplateParser Constructor 

**Applies to:** Customer's Canvas On-Premises; Design Atoms .NET 6.0.0, 6.x (may differ) · **Archived documentation**
 
Initializes a new instance of the [TemplateParser](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Convert_TemplateParser.htm.md) class.
 
**Namespace:** [Aurigma.DesignAtoms.Convert](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Convert.htm.md) 
 **Assembly:** Aurigma.DesignAtoms (in Aurigma.DesignAtoms.dll)
 
## Syntax
  
```csharp
public TemplateParser(ITemplateConverter templateConverter
)
```
 
### Parameters
 
 - templateConverter
     - Type: [Aurigma.DesignAtoms.Convert.ITemplateConverter](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Convert_ITemplateConverter.htm.md)
A dependency on the [ITemplateConverter](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Convert_ITemplateConverter.htm.md).
 
## Examples
 You can create an instance of this class by using dependency injection.
```csharp
using Aurigma.DesignAtoms.Configuration;
using Aurigma.DesignAtoms.Convert;
Injector.CurrentFactory = () => DefaultInjectorFactory.Create();
var parser = Injector.Instance.Resolve<TemplateParser>();
var product = parser.FromIdml("invitation.idml");
```
 
## See Also
  
### Reference
 
- [TemplateParser Class](https://customerscanvas.com/docs/cc6/T_Aurigma_DesignAtoms_Convert_TemplateParser.htm.md)
- [Aurigma.DesignAtoms.Convert Namespace](https://customerscanvas.com/docs/cc6/N_Aurigma_DesignAtoms_Convert.htm.md)
