Documentation
¶
Overview ¶
Forked form https://github.com/go-martini/martini/blob/master/env.go
Front-matter: http://jekyllrb.com/docs/frontmatter/
Index ¶
Constants ¶
View Source
const ( Dev string = "development" Prod string = "production" Test string = "test" )
Envs
Variables ¶
View Source
var ( FRONT_MATTER = regexp.MustCompile(`---\s*`) EOL = byte('\n') )
View Source
var Env = Dev
Env is the environment that Space is executing in. The SPACE_ENV is read on initialization to set this variable.
Functions ¶
func FrontMatterParser ¶
Types ¶
type ClassicSpace ¶
func Classic ¶
func Classic() *ClassicSpace
type File ¶
type Filesystem ¶
func NewFilesystem ¶
func NewFilesystem() Filesystem
type Page ¶
type Page struct {
Title string `yaml:"title"`
Date string `yaml:"date"`
Type string `yaml:"type"`
Layout string `yaml:"layout"`
Permalink string `yaml:"permalink"`
Draft bool `yaml:"draft"`
Tags []string `yaml:"tags"`
Categories []string `yaml:"categories"`
Next string `yaml:"next"`
Previous string `yaml:"previous"`
Vars Locals `yaml:"vars,omitempty"`
Url string
Id string
Path string
Source Path
Target Path
NextPage *Page
PreviousPage *Page
}
type Processor ¶
func NewProcessor ¶
func NewProcessor() *Processor
func (*Processor) Handle ¶
func (p *Processor) Handle(fs Filesystem)
Click to show internal directories.
Click to hide internal directories.