{"ScriptPreparationCode":null,"TestCases":[{"Name":"Standard","Code":"var myTemplate = \u0022\u003Cp\u003EMy favorite kind of cake is: {{favoriteCake}}\u003C/p\u003E\u0022;\r\nvar result = Sqrl.Render(myTemplate, {favoriteCake: \u0027Chocolate!\u0027});","IsDeferred":false},{"Name":"With Conditional and loop","Code":"var data = {\r\n favoriteCake: \u0027Chocolate!\u0027,\r\n test: \u0027ok\u0027,\r\n name: [\u0027Yoan\u0027, \u0027Azhari\u0027]\r\n};\r\nvar myTemplate = \u0060\r\n\t\u003Cp\u003EMy favorite kind of cake is: {{favoriteCake}}\u003C/p\u003E\r\n\t\u003Cp\u003E\r\n\t\ttest Conditional\r\n\t\t{{if(options.test === \u0022ok\u0022)}} Display this! {{#else}} They don\u0027t equal {{/if}}\r\n\t\u003C/p\u003E\r\n\t\u003Cp\u003E\r\n\t\ttest Loop\r\n\t\t{{each(options.name)}}\r\n Hallo {{@this}}, the current index is {{@index}}\r\n {{/each}}\r\n\t\u003C/p\u003E\r\n\u0060;\r\nvar result = Sqrl.Render(myTemplate, data);","IsDeferred":false}]}