Documentation
¶
Overview ¶
Package builder builds the wedit public folder Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package builder builds the wedit public folder Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package builder builds the wedit public folder Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package builder builds the wedit public folder Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package builder builds the wedit public folder Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Index ¶
- Variables
- func CleanUp() (err error)
- func LoadConfig(file string) error
- func ReadPageData(path string) (page model.Page, error error)
- func ReadPageTemplate(path string) (string, error)
- func RebuildAll() (err error)
- func WriteImage(pagePath string, key model.Key, name string, data []byte) (img model.Image, err error)
- func WritePage(relPath string, page model.Page) error
Constants ¶
This section is empty.
Variables ¶
var ( // ErrPathMismatch is used when path can not be matched with tempalte folder ErrPathMismatch = errors.New("provided path could not be matched to template folder ") )
Functions ¶
func CleanUp ¶
func CleanUp() (err error)
CleanUp content and public folder from items not matching template folder
func ReadPageData ¶
ReadPageData based on relative path
func ReadPageTemplate ¶
func RebuildAll ¶
func RebuildAll() (err error)
Types ¶
This section is empty.