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

@@ -21,7 +21,6 @@ import (
"fmt"
"github.com/BurntSushi/toml"
"github.com/theplant/blackfriday"
"html/template"
"io"
"io/ioutil"
"launchpad.net/goyaml"
@@ -46,7 +45,7 @@ type Page struct {
contentType string
Draft bool
Aliases []string
Tmpl *template.Template
Tmpl Template
Markup string
PageMeta
File