mirror of
https://github.com/art-ist/mustache-sharp.git
synced 2024-06-16 21:05:32 +00:00
Update README.md
Little typo in the sample code: Compiler -> Compile
This commit is contained in:
parent
5cabfa4e9b
commit
546fb3f587
@ -50,7 +50,7 @@ The matching braces are required. Notice that they are double curly braces! The
|
|||||||
The identifier is used to find a property with a matching name. If you want to print out the object itself, you can use the special identifier `this`.
|
The identifier is used to find a property with a matching name. If you want to print out the object itself, you can use the special identifier `this`.
|
||||||
|
|
||||||
FormatCompiler compiler = new FormatCompiler();
|
FormatCompiler compiler = new FormatCompiler();
|
||||||
Generator generator = compiler.Compiler("Hello, {{this}}!!!");
|
Generator generator = compiler.Compile("Hello, {{this}}!!!");
|
||||||
string result = generator.Render("Bob");
|
string result = generator.Render("Bob");
|
||||||
Console.Out.WriteLine(result); // Hello, Bob!!!
|
Console.Out.WriteLine(result); // Hello, Bob!!!
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user