using pre-compiled handlebar templates

re-did static content from nancy
This commit is contained in:
kay.one 2013-03-29 16:00:38 -07:00
commit 375f887539
21 changed files with 367 additions and 124 deletions

View file

@ -0,0 +1,21 @@
using System.IO;
namespace NzbDrone.Api.Frontend
{
public interface IMapHttpRequestsToDisk
{
string Map(string resourceUrl);
}
public class StaticResourceMapper : IMapHttpRequestsToDisk
{
public string Map(string resourceUrl)
{
var path = resourceUrl.Replace('/', Path.DirectorySeparatorChar);
path = path.Trim(Path.DirectorySeparatorChar).ToLower();
return Path.Combine("ui", path);
}
}
}