Add support for amber files

If a layout file ends with .amber it will interpreted as a Amber file

Signed-off-by: Noah Campbell <noahcampbell@gmail.com>
This commit is contained in:
Fabrizio (Misto) Milo
2013-08-31 17:47:21 -07:00
committed by Noah Campbell
parent ee5865f239
commit ba82a20321
6 changed files with 171 additions and 108 deletions

View File

@@ -39,10 +39,9 @@ func TestDegenerateRenderThingMissingTemplate(t *testing.T) {
}
}
func TestPrimeTempaltes(t *testing.T) {
func TestPrimeTemplates(t *testing.T) {
s := new(Site)
s.prepTemplates()
s.primeTemplates()
if s.Tmpl.Lookup("alias") == nil {
t.Fatalf("alias template not created.")
}