Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectTemplats ¶
CollectTemplats compiles a list of template searching into the provided dirname
Types ¶
type Post ¶
type Post struct { FilePath string FileName string Template string Content template.HTML Meta map[string]string // Index is a special flag, the field Related // will be filled with all other post objs Index bool Related []*Post // Status moves the file in a "status" directory // ex. outputdir/state/filename Status string OutputDir string }
Post is the type of the post it contains some required information, metas and the content of the file in the content of the file, special variable can be used to access these properties ex: {{.FileName}} outputs the FileName prop, and {{.Meta.MyProp}} outputs a custom prop declared directly in the file
func CollectPosts ¶
CollectPosts compile sa list of post searching into a given dirname
Click to show internal directories.
Click to hide internal directories.