public static string Render(CompiledHandlebars.CompilerTests.HandlebarsJsSpec.FooModel viewModel) { var sb = new StringBuilder(64); ; /* long-comment */ sb.Append(" blah"); return sb.ToString(); }
public static string Render(CompiledHandlebars.CompilerTests.HandlebarsJsSpec.FooModel viewModel) { var sb = new StringBuilder(64); sb.Append("\\"); sb.Append(WebUtility.HtmlEncode(viewModel.Foo)); return sb.ToString(); }
public static string Render(CompiledHandlebars.CompilerTests.HandlebarsJsSpec.FooModel viewModel) { var sb = new StringBuilder(64); sb.Append("Goodbye\n"); sb.Append("\n"); sb.Append("!"); return sb.ToString(); }
public static string Render(CompiledHandlebars.CompilerTests.HandlebarsJsSpec.FooModel viewModel) { var sb = new StringBuilder(64); if (!IsTruthy(viewModel) || !IsTruthy(viewModel.Foo)) { sb.Append("Goodbye"); } return sb.ToString(); }
public static string Render(CompiledHandlebars.CompilerTests.HandlebarsJsSpec.FooModel viewModel) { var sb = new StringBuilder(64); sb.Append("content {{Foo}}"); return sb.ToString(); }