Initialize() public method

We don't need markup to open this block
public Initialize ( string tagName, string markup, List tokens ) : void
tagName string
markup string
tokens List
return 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);
 }