示例#1
0
        public static async Task <string> Partial(this ISuperGlueView view, object partial)
        {
            var stream = await Partials.ExecutePartial(view.Environment, partial).ConfigureAwait(false);

            using (var streamReader = new StreamReader(stream))
            {
                return(await streamReader.ReadToEndAsync().ConfigureAwait(false));
            }
        }
示例#2
0
        public Task Start(AppFunc chain, IDictionary <string, object> settings, string environment, string[] arguments)
        {
            Partials.Initialize(chain);

            return(Task.CompletedTask);
        }