Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

spaces in options #136

Open
mbaniasad opened this issue Mar 11, 2019 · 0 comments
Open

spaces in options #136

mbaniasad opened this issue Mar 11, 2019 · 0 comments

Comments

@mbaniasad
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant