Beispiel #1
0
        public override void RenderToContext(Context context)
        {
            InternalTag.BeginRender(context);

            int index = 0;

            foreach (var innerContext in Tag.GetContexts(context, Arguments))
            {
                if (index == 0 && innerContext != null)
                {
                    foreach (var statement in Statements)
                    {
                        statement.RenderToContext(innerContext);
                    }
                }
                else if (index == 1 && innerContext != null)
                {
                    foreach (var statement in ConditionalStatements)
                    {
                        statement.RenderToContext(innerContext);
                    }
                }

                index++;
            }

            InternalTag.EndRender(context);
        }
Beispiel #2
0
        public override void RenderToContext(Context context)
        {
            InternalTag.BeginRender(context);

            foreach (var innerContext in Tag.GetContexts(context, Arguments))
            {
                if (innerContext != null)
                {
                    foreach (var statement in Statements)
                    {
                        statement.RenderToContext(innerContext);
                    }
                }
            }

            InternalTag.EndRender(context);
        }