Example #1
0
        /// <summary>
        /// Push new local scope on the stack. use <tt>Context#stack</tt> instead
        /// </summary>
        /// <param name="newScope"></param>
        public void Push(Hash newScope)
        {
            if (Scopes.Count > 80)
            {
                throw new StackLevelException(Liquid.ResourceManager.GetString("ContextStackException"));
            }

            Scopes.Insert(0, newScope);
        }