cmd.py (483B)
1 ''' 2 ' pnbp - pnbp is not a blogging platform 3 ' cmd.py 4 ' Paul Longtine - paullongtine@gmail.com 5 ' 6 ' For documentation, please visit http://static.nanner.co/pnbp 7 ''' 8 9 basicConfig = "index:\n template: \"template.html\"\n pagevar:\n title: \"I'm basic\"\n pagemod:\n page:\n mod: \"page\"" 10 basicTemplate = "<html>\n <body>\n <h1>%title%</h1>\n </body>\n</html>" 11 12 def init(): 13 file("pages.yml","w").write(basicConfig) 14 file("template.html","w").write(basicTemplate) 15