You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using RazorEngine;using RazorEngine.Templating;namespace RazorDemo.ConsoleDemo
{classProgram{staticvoidMain(string[]args){vartemplate="Hello @Model.Name, welcome to use RazorEngine!";varresult= Engine.Razor.RunCompile(template,"templateKey1",null,new{ Name ="World"});
Console.WriteLine(result);
Console.Read();}}}
The text was updated successfully, but these errors were encountered:
I've just implemented this and released a new version (v0.2.0).
It can be used as follows:
vartemplate="<template>Hello {{Name}}, welcome to NVue!</template>";varresult= NVueTemplateEngine.RunCompile(template,"testtemplate",null,new{ Name ="World"});
Console.WriteLine(result);// Hello World, welcome to NVue!
The text was updated successfully, but these errors were encountered: