FormatWith
FormatWith copied to clipboard
String extensions for named parameterized string formatting.
We are using `crozone/FormatWith` to fill mail templates. These email templates must be sent in Spanish. However when trying to format the dates they appear in English. Is there a...
Need to investigate updating the parser to return `ReadOnlySpan` instead of the current struct. Probably won't make much of a difference to performance, since the current implementation is already using...
At present, `FormatWith` supports basic property navigations in parameter keys. However, it does not support combining this with indexers to navigate into objects arrays, lists, or dictionaries. For example, this...
Currently the tokenizer considers the entire contents of text between the open bracket and closed bracket the "key", including any whitespace that may be surrounding the actual text. This is...
## Preface It is currently possible to change the key equality behaviour when passing in a lookup `Dictionary` by specifying a specific `StringComparer` in the dictionary constructor. This is passed...
As `FormatWith` gains features, additional options to control how formatting is performed will be required. ### Control over disabling property and indexer navigations. Property navigations, and soon indexers (https://github.com/crozone/FormatWith/issues/26), are...
Hi, is it possible to use string as braces not char? Like {{ }} >? Using only one character is risky, you can end up with unwanted parameters.
Does this library support nested arguments? i.e.: ``` "{foo.bar}".FormatWith(new { foo = new { bar = "test" } }) ```
Hello, I really like this little helper - is it still alive? Help needed? Best Regards, Uwe
[Feature Request] Add a type that tokenizes the string once, and reuse it for processing parameters.
Hi @crozone, thanks for this very useful and easy-to-use library. I'm wondering if it would be possible to add support for something that can parse the parametrized string once and...