SuperSimpleViewEngine
SuperSimpleViewEngine copied to clipboard
Super simple regex based view engine used in Nancy diagnostics and (soon to be) TinyTemplates.
``` html @If.HasUsers Yay Users! @EndIf @Each.Users @Current.Name says: @If.IsFromGreece Yay Greece! @EndIf @IfNot.IsFromGreece Boo Greece! @EndIf @EndEach ``` Result: ``` html Yay Users! Bob says:Yay Greece! Malin says:Boo Greece!...
This SSVE markup: ``` @Context.ViewBag.HaveMessage; @If.Context.ViewBag.HaveMessage; Yay Message! @EndIf; ``` **Produces in Nancy:** ``` True ``` **Produces in SSVE test:** ``` True Yay Message! ``` ``` [Fact] public void Should_evaluate_context_conditional()...