예제 #1
0
        /// <summary>
        /// This function determines the format of the contents of the entry
        /// point where the dynamic code will be injected.
        /// </summary>
        /// <returns></returns>
        public static object dynMehTemplate()
        {
            var span = new SpanElement();

            span.SetNGController("hwbctl");
            span.InnerHTML = "AJS says by directive: [{{message}}]";
            return(new { template = span.OuterHTML });
        }
예제 #2
0
        public static object ThreeWayFunction()
        {
            var span = new SpanElement();

            span.SetNGController("hwbSctl");
            span.InnerHTML = "AJS for three scopined: " +
                             "[msg:{{message}}][foo:{{foo}}][bar:{{bar}}]";
            return(new { template = span.OuterHTML });
        }