static void Main(string[] args) { var show = GetTvShow(); LiquidFunctions.RegisterViewModel(typeof(Show)); var template = Template.Parse( new StreamReader("EmailTemplate.html") .ReadToEnd()); var result = template.RenderViewModel(show); }
public void RegisterTypesInNamespace(Assembly assembly, string modelsNamespace) { LiquidFunctions.RegisterViewModel(assembly, modelsNamespace); }