Move alias logic to target module

I want to move all logic to writing aliases to target so I can pave the
way for writing aliases specific to other runtimes (like .htaccess for
apache or a script for updating AWS or symlinking on a filesystem).
This commit is contained in:
Noah Campbell
2013-09-12 21:18:13 -07:00
parent 2f10da1570
commit 2ebfb33fe0
7 changed files with 76 additions and 47 deletions

View File

@@ -52,14 +52,6 @@ func TestDegenerateRenderThingMissingTemplate(t *testing.T) {
}
}
func TestPrimeTemplates(t *testing.T) {
s := new(Site)
s.prepTemplates()
if s.Tmpl.Lookup("alias") == nil {
t.Fatalf("alias template not created.")
}
}
func TestAddInvalidTemplate(t *testing.T) {
s := new(Site)
s.prepTemplates()