mustache-sharp icon indicating copy to clipboard operation
mustache-sharp copied to clipboard

An extension of the mustache text template engine for .NET.

Results 44 mustache-sharp issues
Sort by recently updated
recently updated
newest added

how i solve the problem {{#if condition == true}} {{do something}} {{/if} secondly i want to compare the value in if condition. how i do this {{#if value == someothervalue}}...

Could we make this class public? It is a useful one to be able to inherit from and add as a custom tag (have tested successfully)

First, let me say I'm loving this project. However, I'm finding it hard to get help creating a custom tag. The docs are a little light as are the tests....

Occasionally when rendering a relatively simple template I get the following error: ``` [ArgumentException: An item with the same key has already been added.] System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)...

Example from immediate mode: ``` var d = new JObject(); Expression has been evaluated and has no value d["test"] = "hello"; {hello} First: '(d["test"] = "hello").First' threw an exception of...

handle datetime default value the same as null for the `#if` tag.

I am doing json templating with mustache-sharp and I need to create a custom tag (#comma} to inject a comma after each elements of the json collection except the last...

I want to know Is there anyway by using this template engine and have two conditions for checking ``` 1) IsNullOrEmpty(string) => e.g. {{#IsNullOrEmpty MyName}}} {{/IsNullOrEmpty}} 2) List.Count > 0...

When passing a JOBject in to Generator.Render the IF clause does not get evaluated. The ability to pass JObect to render is really useful because it allows us to pass...

Odd case where something in an SMTP server is truncating at 1000 characters per line. Probably a dumb C++ newline splitter with a max of 1000 per line. Since mustache...