示例#1
0
        public BaseSiteComposer(ILayoutParser parser, IConfiguration config, IComposerExtension ext)
        {
            m_LayoutParser = parser;
            m_Config       = config;
            m_Comparer     = StringComparer.CurrentCultureIgnoreCase;
            m_Comparison   = StringComparison.CurrentCultureIgnoreCase;

            m_DefaultLayoutName = m_Config?.GetParameterOrDefault <string>(DEFAULT_LAYOUT_PARAM_NAME);
        }
示例#2
0
        public BaseCompiler(BaseCompilerConfig config,
                            ILogger logger, ILayoutParser layoutParser,
                            IIncludesHandler includesHandler,
                            IStaticContentTransformer contentTransformer, ICompilerExtension ext)
        {
            m_Config             = config;
            m_Logger             = logger;
            m_LayoutParser       = layoutParser;
            m_ContentTransformer = contentTransformer;
            m_IncludesHandler    = includesHandler;

            m_Ext = ext;
        }