ITemplate

Namespace: Proffer.Templating

A template reference can be executed on a specific context using an Apply method.

public interface ITemplate

Methods

Apply(Object)

Applies the specified context on the template.

string Apply(object context)

Parameters

context Object
The context.

Returns

String
The templated result.

Exceptions

InvalidContextException

Apply(Object, IFormatProvider)

Applies the specified context on the template with format provider.

string Apply(object context, IFormatProvider formatProvider)

Parameters

context Object
The context.

formatProvider IFormatProvider
The format provider.

Returns

String

        The templated result.

Exceptions

InvalidContextException