Exemplo n.º 1
0
        private void AddKeywordOptions(CommandLineOptions options, ref IRenderingOptions renderingOptions)
        {
            if(!String.IsNullOrEmpty(options.KeywordOptions))
              {
            var keywordOptions = options.KeywordOptions
              .Split(KEYWORD_OPTION_SEPARATOR)
              .Select(GetKeywordOption);

            foreach(var option in keywordOptions)
            {
              renderingOptions.KeywordOptions.Add(option.Item1, option.Item2);
            }
              }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Parse and render the documents found using the given batch rendering options.
 /// </summary>
 /// <param name="options">Rendering options.</param>
 /// <param name="batchOptions">Batch rendering options, indicating the source and destination files.</param>
 /// <returns>
 /// An object instance indicating the outcome of the rendering.
 /// </returns>
 public virtual IBatchRenderingResponse Render(IBatchRenderingOptions batchOptions,
                                           IRenderingOptions options = null)
 {
     return this.Render(batchOptions, _settingsFactory.CreateSettings(options));
 }