RegisterHelpers() public static method

public static RegisterHelpers ( CmsData.CMSDataContext db ) : void
db CmsData.CMSDataContext
return void
Example #1
0
        public string RenderTemplate(string source, object data)
        {
            var template = PythonModel.RegisterHelpers(this).Compile(source);
            var result   = template(data);

            return(result);
        }