using System.IO;

namespace Griffin.MvcContrib.VirtualPathProvider
{
    /// <summary>
    /// Used to correct external view files
    /// </summary>
    /// <remarks>The purpose of the class is to allow the external views to look exactly as regular views without @inherits or anything like that.</remarks>
    public interface IExternalViewFixer
    {
        /// <summary>
        /// Modify the view
        /// </summary>
        /// <param name="virtualPath">Path to view</param>
        /// <param name="stream">Stream containing the original view</param>
        /// <returns>Stream with modified contents</returns>
        Stream CorrectView(string virtualPath, Stream stream);
    }
}