Run function
This commit is contained in:
11
pkg/mark2web/run.go
Normal file
11
pkg/mark2web/run.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package mark2web
|
||||
|
||||
func Run(inDir, outDir string, defaultPathConfig *PathConfig) {
|
||||
SetTemplateDir(inDir + "/templates")
|
||||
|
||||
tree := new(TreeNode)
|
||||
tree.ReadContentDir(inDir+"/content", outDir, "", defaultPathConfig)
|
||||
tree.ProcessContent()
|
||||
|
||||
ProcessAssets()
|
||||
}
|
||||
@@ -16,5 +16,6 @@ type TreeNode struct {
|
||||
Config *PathConfig
|
||||
Sub []*TreeNode
|
||||
|
||||
root *TreeNode // shows always to root of tree
|
||||
root *TreeNode // shows always to root of tree
|
||||
parent *TreeNode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user