Here is my C # interface:
public interface ITemplateService { string RenderTemplate(object model, string templateName); string RenderTemplate(object model, string templateName, string directory); }
I am trying to execute an implementation in F #, but got an error with the end keyword. (unexpected end in implementation file)
module TemplateService open DotLiquid type TemplateService = inherit ITemplateService member this.RenderTemplate model (templateName:string):string = "" member this.RenderTemplate model (templateName:string, directory:string):string = "" end
ps. What is this code in F #:
Template template = Template.Parse(stringToTemplate); template.Render(Hash.FromAnonymousObject(model));
source share