Castle.MonoRail.Framework.FileAssemblyViewSourceLoader.GetViewSource C# (CSharp) Method

GetViewSource() public method

Builds and returns a representation of a view template
public GetViewSource ( String templateName ) : IViewSource
templateName String The template name
return IViewSource
		public IViewSource GetViewSource(String templateName)
		{
			FileInfo fileInfo = CreateFileInfo(templateName);

			if (fileInfo.Exists)
			{
				return new FileViewSource(fileInfo, enableCache);
			}
			else
			{
				return GetStreamFromAdditionalSources(templateName);
			}
		}