builder

package
v0.0.0-...-922e9af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2019 License: MIT Imports: 24 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
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 LoadConfig

func LoadConfig(file string) error

LoadConfig form wedit.json file

func ReadPageData

func ReadPageData(path string) (page model.Page, error error)

ReadPageData based on relative path

func ReadPageTemplate

func ReadPageTemplate(path string) (string, error)

func RebuildAll

func RebuildAll() (err error)

func WriteImage

func WriteImage(pagePath string, key model.Key, name string, data []byte) (img model.Image, err error)

WriteImage to the content and public folder

func WritePage

func WritePage(relPath string, page model.Page) error

WritePage to the content and public folder

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL