ghost

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

ghost

An annotation-based template engine.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAll

func ParseAll(originFolder, targetFolder string, options map[string]interface{}) error

ParseAll parse all template files in the folder

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(tempName string, options map[string]interface{}) (temp Template, err error)

Parse parse template files

func (*Template) SaveAsFile

func (t *Template) SaveAsFile(name string) error

Directories

Path Synopsis
example
if
var

Jump to

Keyboard shortcuts

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