Nustache
Nustache copied to clipboard
spaces in options
I want to have a option in formatting which includes a space
if(!RegHelpers)
{
Nustache.Core.Helpers.Register("FormatDateTime", NustashHelpers.NustashHelpers.FormatDateTime);
RegHelpers = true;
}
string sTemplate = "* {{greeting}} {{subject}}{{curTime}}! --- {{FormatDateTime curTime format=\"HH:mm/ :ss\"}} ---";
Dictionary<string, string> testData = new Dictionary<string, string>();
testData["greeting"] = "Hello";
testData["subject"] = "world";
testData["curTime"] = DateTime.Now.ToString();
ViewData["Message"] = Nustache.Core.Render.StringToString(sTemplate, testData);
the code is ignoring what comes after the space. it seems there is a pull request from 2013 which is answering this issue. wondering why it's not merged... or is there another way to do fix my issue