|
@@ -0,0 +1,43 @@
|
|
|
+#+Title: Fast Site Generator
|
|
|
+#+Author: Sam Flint
|
|
|
+#+PROPERTY: noweb tangle
|
|
|
+
|
|
|
+* Imports
|
|
|
+#+Name: Imports
|
|
|
+#+CAPTION: use-name-as-caption
|
|
|
+#+BEGIN_SRC python
|
|
|
+ from yaml import load
|
|
|
+ import sys, os
|
|
|
+#+END_SRC
|
|
|
+* Copyright Statement
|
|
|
+#+Name: CopyrightStatement
|
|
|
+#+CAPTION: use-name-as-caption
|
|
|
+#+BEGIN_SRC text
|
|
|
+ Copyright (C) 2013, Flint Systems Management.
|
|
|
+
|
|
|
+ This program is free software: you can redistribute it and/or modify
|
|
|
+ it under the terms of the GNU General Public License as published by
|
|
|
+ the Free Software Foundation, either version 3 of the License, or
|
|
|
+ (at your option) any later version.
|
|
|
+
|
|
|
+ This program is distributed in the hope that it will be useful,
|
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
+ GNU General Public License for more details.
|
|
|
+
|
|
|
+ You should have received a copy of the GNU General Public License
|
|
|
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
+#+END_SRC
|
|
|
+* Parse local Config
|
|
|
+* Convert Files
|
|
|
+* Loop over Files
|
|
|
+* Create local Config
|
|
|
+* Main Loop
|
|
|
+* Final Code
|
|
|
+#+Name: FinalCode
|
|
|
+#+CAPTION: use-name-as-caption
|
|
|
+#+BEGIN_SRC python :tangle "fastsite.py" :shebang "#!/usr/bin/python"
|
|
|
+ # <<CopyrightStatement>>
|
|
|
+
|
|
|
+ <<Imports>>
|
|
|
+#+END_SRC
|