internal static string ResolvePathVariable(SageContext context, string variable)
{
switch (variable.ToLower())
{
case "apppath":
return context.ApplicationPath;
case "locale":
return context.Locale;
case "basehref":
return context.BaseHref;
case "category":
return context.Category;
case "assetpath":
return context.Path.GetRelativeWebPath(context.Path.AssetPath);
case "sharedassetpath":
return context.Path.GetRelativeWebPath(context.Path.SharedAssetPath);
case "modulepath":
return context.Path.GetRelativeWebPath(context.Path.ModulePath);
}
return variable;
}