Exemple #1
0
        public string TransformStringContext(string templateName, object o)
        {
            templateName = templateName.ToLowerInvariant();

            CheckTemplate(templateName);
            return(engine.Invoke("chevronTemplate_" + templateName, o).AsString());
        }
Exemple #2
0
        public string TransformStringContext(string templateName, object o)
        {
            Guard.AgainstNullAndEmpty(templateName, "templateName");
            templateName = templateName.ToLowerInvariant();

            CheckTemplate(templateName);
            return(engine.Invoke("chevronTemplate_" + templateName, o).AsString());
        }