Documentation ¶
Overview ¶
* Copyright (c) 2016 Josh Vega * See LICENSE for license details.
* Copyright (c) 2016 Josh Vega * See LICENSE for license details.
* Copyright (c) 2016 Josh Vega * See LICENSE for license details.
Index ¶
Constants ¶
View Source
const ( METADATA_START = "+++" METADATA_END = "+++" )
Variables ¶
View Source
var ( ErrorMissingTitle = errors.New("Missing title") ErrorMissingAuthor = errors.New("Missing author") ErrorMissingDescription = errors.New("Missing description") ErrorMissingTemplate = errors.New("Missing template") ErrorNoMetadata = errors.New("Couldn't find metadata") )
View Source
var ( ErrorNotImplemented = errors.New("Not implemented") ErrorBadWrite = errors.New("Unable to write to output file") )
Functions ¶
This section is empty.
Types ¶
type ConfigData ¶
func ParseConfig ¶
func ParseConfig(filename string) ConfigData
type PageMetadata ¶
TODO: Make certain fields optional
type PageOutput ¶
type PageOutput struct { Name string Metadata PageMetadata Content string Error error }
func ParsePage ¶
func ParsePage(directory, filename string) *PageOutput
func (PageOutput) GeneratePage ¶
func (page PageOutput) GeneratePage(targetDir string, doMinify bool) error
Click to show internal directories.
Click to hide internal directories.