Castle.MonoRail.Framework.FileAssemblyViewSourceLoader.GetViewSource C# (CSharp) 메소드

GetViewSource() 공개 메소드

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

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