示例#1
0
        public void ShouldBeAbleToCompileSourceWithDustScript()
        {
            string source   = "Hello {Name}";
            string compiled = DustScript.Compile(source, "test");

            OutLine(compiled);
        }
示例#2
0
        public void ShouldBeAbleToRenderWithDustScript()
        {
            string source   = "Hello {Name}";
            string compiled = DustScript.Compile(source, "test");
            string output   = DustScript.Render(compiled, "test", new { Name = "Bananas" });

            OutLine(output);
        }