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