Skip to content

spaces in options #136

@mbaniasad

Description

@mbaniasad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions