aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/compile_html.py
blob: 82410304459a5a4dbc06370fb5cc366e9c9be85f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)