Initialize() 공개 메소드

We don't need markup to open this block
public Initialize ( string tagName, string markup, List tokens ) : void
tagName string
markup string
tokens List
리턴 void
예제 #1
0
        /// <summary>
        /// Parse source code.
        /// Returns self for easy chaining
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        internal Template ParseInternal(string source)
        {
            source = DotLiquid.Tags.Literal.FromShortHand(source);
            source = DotLiquid.Tags.Comment.FromShortHand(source);

            Root = new Document();
            Root.Initialize(null, null, Tokenize(source));
            return(this);
        }
예제 #2
0
 internal Template ParseInternal(List <string> tokens)
 {
     Root = new Document();
     Root.Initialize(null, null, tokens);
     return(this);
 }