aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/compile_html.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2012-12-12 20:15:50 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2012-12-12 20:15:50 -0300
commit540e6aa6fcd86a98e270715d1d4e49493eacc270 (patch)
treead1b1fcca82d9638f5edcf7a4d9149ca113ba2d2 /nikola/plugins/compile_html.py
parent25744f4bf462020e353c503db3ec558604c19137 (diff)
parent0f2c04e70a0ffdd0892d6970cafbcd952d221db5 (diff)
Merge tag 'upstream/5'
Upstream version 5
Diffstat (limited to 'nikola/plugins/compile_html.py')
-rw-r--r--nikola/plugins/compile_html.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/nikola/plugins/compile_html.py b/nikola/plugins/compile_html.py
new file mode 100644
index 0000000..8241030
--- /dev/null
+++ b/nikola/plugins/compile_html.py
@@ -0,0 +1,20 @@
+"""Implementation of compile_html based on markdown."""
+
+import os
+import shutil
+
+
+from nikola.plugin_categories import PageCompiler
+
+
+class CompileHtml(PageCompiler):
+ """Compile HTML into HTML."""
+
+ name = "html"
+
+ def compile_html(self, source, dest):
+ try:
+ os.makedirs(os.path.dirname(dest))
+ except:
+ pass
+ shutil.copyfile(source, dest)