fullhtml.py
39 lines
| 1.2 KiB
| text/x-python
|
PythonLexer
Jonathan Frederic
|
r10677 | """ | ||
Exporter for exporting full HTML documents. | ||||
Jonathan Frederic
|
r10639 | """ | ||
#----------------------------------------------------------------------------- | ||||
# 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 | ||||
#----------------------------------------------------------------------------- | ||||
Jonathan Frederic
|
r10677 | from IPython.utils.traitlets import Unicode | ||
MinRK
|
r11108 | from .basichtml import BasicHTMLExporter | ||
damianavila
|
r10964 | from IPython.config import Config | ||
Jonathan Frederic
|
r10639 | #----------------------------------------------------------------------------- | ||
# Classes | ||||
#----------------------------------------------------------------------------- | ||||
MinRK
|
r11108 | class FullHTMLExporter(BasicHTMLExporter): | ||
Jonathan Frederic
|
r10677 | """ | ||
Exports a full HTML document. | ||||
""" | ||||
damianavila
|
r10964 | |||
Jonathan Frederic
|
r10639 | template_file = Unicode( | ||
'fullhtml', config=True, | ||||
damianavila
|
r10964 | help="Name of the template file to use") | ||
@property | ||||
def default_config(self): | ||||
MinRK
|
r11108 | c = Config({'CSSHTMLHeaderTransformer':{'enabled':True}}) | ||
c.merge(super(FullHTMLExporter,self).default_config) | ||||
Matthias BUSSONNIER
|
r10967 | return c | ||