src/Azos/Templatization/TemplateCompiler.cs
/// <summary>
/// Performs compilation if it has not already been performed
/// </summary>
Performs compilation if it has not already been performed
Performs compilation if it has not already been performed
public void Compile()
         {
           if (m_Compiled) return;
             DoBeforeCompileTemplateSources();
             foreach(var cu in m_Units.Values)
               try
               {
                 DoCompileTemplateSource(cu);
               }
               catch(Exception error)
               {
                 cu.CompilationException = error;
               }
             if (m_CompileCode)
              try
              {
               DoCompileCode();
              }
              catch(Exception error)
              {
                m_CodeCompilerErrors.Add(error);
              }
           m_Compiled = true;
         }
public void Compile ( ) { if ( m_Compiled ) return ; DoBeforeCompileTemplateSources ( ) ; foreach ( var cu in m_Units . Values ) try { DoCompileTemplateSource ( cu ) ; } catch ( Exception error ) { cu . CompilationException = error ; } if ( m_CompileCode ) try { DoCompileCode ( ) ; } catch ( Exception error ) { m_CodeCompilerErrors . Add ( error ) ; } m_Compiled = true ; }
Performs compilation if it has not already been performed
Performs compilation if it has not already been performed