Castle.MonoRail.Views.Brail.BrailBase.GetSubViewFilename C# (CSharp) 메소드

GetSubViewFilename() 공개 메소드

Get the sub view file name, if the subview starts with a '/' then the filename is considered relative to ViewDirRoot otherwise, it's relative to the current script directory
public GetSubViewFilename ( string subviewName ) : string
subviewName string
리턴 string
		public string GetSubViewFilename(string subviewName)
		{
			//absolute path from Views directory
			if (subviewName[0] == '/')
				return subviewName.Substring(1) + viewEngine.ViewFileExtension;
			return Path.Combine(ScriptDirectory, subviewName) + viewEngine.ViewFileExtension;
		}