It should have the following capabilities, in order of importance to me:
[X] Formatting a template string [#7]
[x] Destructuring and formatting of destructured values
[x] Capturing properties (e.g. Name * Value) from a template
[X] Parsing a template string [#7]
The API might look like this:
/// Formats a message template as a string, replacing the properties
/// with the provided values, writing to results to a TextWriter.
val formatf: provider: System.IFormatProvider
-> tw: System.IO.TextWriter
-> template: Template
-> values: obj[]
-> unit
/// Formats a message template as a string, replacing the properties
/// with the provided values.
val formats: provider: System.IFormatProvider
-> template: Template
-> values: obj[]
-> string
/// Captures the properties f
val captureProperties: messageTemplate:Template -> (PropertyData * obj) seq
/// Parses a message template string.
val parse: templateString:string -> Template
It should be easy to simply copy the file into a project and use it.
It should have the following capabilities, in order of importance to me:
Formatting a template string[#7]Name * Value
) from a templateParsing a template string[#7]The API might look like this:
It should be easy to simply copy the file into a project and use it.
It should be fast.