##// END OF EJS Templates
Change hardcoded functions to use reflection instead.
Change hardcoded functions to use reflection instead.

File last commit:

r10630:d5a4e2e2
r10633:183c8cfe
Show More
html.py
41 lines | 1.4 KiB | text/x-python | PythonLexer
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 """TODO: Docstring
Jonathan Frederic
Finished a rough draft of the exporters.
r10588 """
#-----------------------------------------------------------------------------
# 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
Jonathan Frederic
Got RST exporting to work... Sort of.
r10626 import nbconvert.transformers.csshtmlheader
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 from IPython.utils.traitlets import Unicode
Jonathan Frederic
Finished a rough draft of the exporters.
r10588
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
class HtmlExporter(exporter.Exporter):
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 file_extension = Unicode(
'html', config=True,
help="Extension of the file that should be written to disk"
)
template_file = Unicode(
'fullhtml', config=True,
help="Name of the template file to use")
Jonathan Frederic
Finished a rough draft of the exporters.
r10588
def _register_transformers(self):
#Register the transformers of the base class.
Jonathan Frederic
Almost have nbconvert working again...
r10630 super(HtmlExporter, self)._register_transformers()
Jonathan Frederic
Finished a rough draft of the exporters.
r10588
#Register latex transformer
Jonathan Frederic
Got RST exporting to work... Sort of.
r10626 self.register_transformer(nbconvert.transformers.csshtmlheader.CSSHtmlHeaderTransformer)
Jonathan Frederic
Finished a rough draft of the exporters.
r10588