Branch: Tag:

1997-11-26

1997-11-26 06:58:41 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

new target

Rev: tutorial/sitebuilder.pike:1.1

1: + #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",".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; + }   Newline at end of file added.