File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ const script_dir = path self | path dirname
2+
13# Seed store topics from disk files when --store is enabled
24if $HTTP_NU . store != null {
3- open examples /templates/ topics/page.html | .append page.html
4- open examples/ templates / topics/ base. html | . append base. html
5- open examples /templates/ topics/nav.html | .append nav.html
5+ open ( $script_dir | path join topics/page.html) | .append page.html
6+ open ($script_dir | path join topics/ base. html) | . append base. html
7+ open ( $script_dir | path join topics/nav.html) | .append nav.html
68}
79
810{|req|
911 match $req.path {
10- "/ file" => { {name: " World " } | .mj " examples /templates/ page. html" }
12+ "/ file" => { {name: " World " } | .mj ($script_dir | path join page.html) }
1113 " /topic" => { {name: "World"} | .mj --topic "page.html" }
1214 _ => {
1315 {} | .mj --inline '<h1>Templates</ h1>
You can’t perform that action at this time.
0 commit comments