##// END OF EJS Templates
Made exporter names match template names.
Made exporter names match template names.

File last commit:

r10639:2b3c80d1
r10639:2b3c80d1
Show More
basichtml.py
41 lines | 1.4 KiB | text/x-python | PythonLexer
"""TODO: Docstring
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
# local import
import exporter
import nbconvert.transformers.csshtmlheader
from IPython.utils.traitlets import Unicode
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class BasicHtmlExporter(exporter.Exporter):
file_extension = Unicode(
'html', config=True,
help="Extension of the file that should be written to disk"
)
template_file = Unicode(
'basichtml', config=True,
help="Name of the template file to use")
def _register_transformers(self):
#Register the transformers of the base class.
super(BasicHtmlExporter, self)._register_transformers()
#Register latex transformer
self.register_transformer(nbconvert.transformers.csshtmlheader.CSSHtmlHeaderTransformer)