Just a documentation update
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/aya/trunk@78 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6.8 2023-12-04 15:43:44+0000, yakumo_izuru Exp $
|
||||
// $TheSupernovaDuo: marisa.chaotic.ninja/aya/cmd/aya, v0.6.9 2023-12-09 23:30:07+0000, yakumo_izuru Exp $
|
||||
package main
|
||||
|
||||
import (
|
||||
@@ -199,7 +199,7 @@ func buildMarkdown(path string, w io.Writer, vars Vars) error {
|
||||
return buildHTML(filepath.Join(AYADIR, v["layout"]), w, v)
|
||||
}
|
||||
|
||||
// Renders text file expanding all variable macros inside it
|
||||
// Renders hypertext file expanding all variable macros inside it
|
||||
func buildHTML(path string, w io.Writer, vars Vars) error {
|
||||
v, body, err := getVars(path, vars)
|
||||
if err != nil {
|
||||
@@ -402,7 +402,7 @@ func main() {
|
||||
case "help":
|
||||
aya.PrintUsage()
|
||||
case "serve":
|
||||
aya.HttpServe(PUBDIR)
|
||||
aya.HttpServe(PUBDIR, 8000)
|
||||
case "var":
|
||||
if len(args) == 0 {
|
||||
fmt.Println("var: filename expected")
|
||||
|
||||
Reference in New Issue
Block a user