Stubble
Stubble copied to clipboard
Trimmed down {{mustache}} templates in .NET
Succeeds #37 Create a cake extension that allows you to use stubble for templating when using [cakebuild](https://cakebuild.net/)
``` using Stubble.Core.Builders; var renderer = new StubbleBuilder().Configure(builder => { builder.SetIgnoreCaseOnKeyLookup(true); }).Build(); var d = new Dictionary() { { "someKey", "hello" }, { "SomeOtherKey", "world" } }; var template =...
I'm trying to access a parent nested value from a child loop. I tried a couple of combinations, but cannot get this to work. ``` {{#operations}} {{#operation.parameters}} {{operations.current.name}} {{operations.parameters.current.name}} {{#/operation.parameters}}...
Hi. I have a object like this: ``` products: [ { name: 'item 1', price: 150, color: 'red', category: 'category 1', quantity: 1, }, { name: 'item 2', price: 250,...
A null value is being treated as truthy. I can fix it by manually adding truthy check to the compilation builder's config. Here's a repro `Program.cs`. I have `Stubble.Core` and...
- For example parent -> child templates using partial templates.
Hi, I was trying to use this library in a VS extension that I'm working but can't do it because it's not signed. I can submit a PR for this,...
Proposed fix for #106. This changes the compiled Section token renderer to skip null items while enumerating.
It's possible to get the compiled renderer to throw a null reference exception by adding a null item to a list in the model and then iterating over the list...
I would like to render `\r`, `\n` and `\r\n` as a line break. Looking at other issues and the documentation I tried playing with RenderSettings SkipHtmlEncoding true, but this did...