File: sitebuilder.pike

package info (click to toggle)
pike7 7.0.361-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,876 kB
  • ctags: 12,334
  • sloc: ansic: 142,667; makefile: 1,526; sh: 1,035; lisp: 290; sed: 34; perl: 3
file content (27 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "types.h"
inherit "html";

SGML wmml_to_html(SGML data)
{
  return convert(data);
}

string mkfilename(string section)
{
  string s=::mkfilename(section);
  return replace(s,".md.html",".html.md");
}


SGML split(SGML data)
{
  SGML ret=html::split(data);
  foreach(indices(sections),string file)
    {
      sections[file+".md"]=({
	"string title=\"Pike Manual\";\n"
	"string template=\"manual.tmpl\";\n"
      });
    }
  return ret;
}