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

            OutLine(compiled);
        }
Esempio n. 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);
        }