예제 #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);
        }