mustache - How to use Partials with Nustache in c# application? -


I have a window application that is using Nostatch. Can I redo an object or array using Nostachch, but how to use partial calculation to use Nstruck?

Check the sample 11.

  var data = {name: "sales": {{name: "engineering", employee: [first Name: "Christophe", last name: "conrites"}, {first name: "John", last name: "Smith"}}}, {name: "sale", employee: [{first name: "Paula" Last name: "Taylor"}, {first name: "Lisa", last name: "Jones"}]}]}}; Var tpl = "{{#depts}} & lt; h1 & gt; {{name}} & lt; / h1 & gt; + "& Lt; ul & gt; {{# employee}} {{Employee}} {{/ employees}}  {{/ depts}}"; Var partial = {employee: "
  • {{first name}} {{lastName}} "}; Var html = mustache Html (tpl, data, partial); . $ ('# SampleArea') HTML;

    How to get into C #?

    Modify the step {{employee}}

  • <{first name}} {{lastName }} & Lt; / Li & gt; {{Employee}} {{#depts}} & lt; H1 & gt; {{Name}} & lt; / H1> "+" & Lt; Ul & gt; {{# Employee}} {{& gt; Employee}} {{/ employees}} & lt; / Ul & gt; {{/ Depts}} ";

    Then pass your object array it will bring it properly. !!!

  • Comments

    Popular posts from this blog

    excel vba - How to delete Solver(SOLVER.XLAM) code -

    github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

    ios - Replace text in UITextView run slowly -