Skip to content

Commit

Permalink
Merge pull request #639 from takluyver/template-file-exts
Browse files Browse the repository at this point in the history
Specify default template files with extension
  • Loading branch information
mpacer authored Aug 7, 2017
2 parents ed682dc + 9908594 commit a96bfdd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion nbconvert/exporters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _default_template_path_default(self):

@default('template_file')
def _template_file_default(self):
return 'full'
return 'full.tpl'

output_mimetype = 'text/html'

Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def _file_extension_default(self):

@default('template_file')
def _template_file_default(self):
return 'article'
return 'article.tplx'

# Latex constants
@default('default_template_path')
Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _file_extension_default(self):

@default('template_file')
def _template_file_default(self):
return 'markdown'
return 'markdown.tpl'

output_mimetype = 'text/markdown'

Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def _file_extension_default(self):

@default('template_file')
def _template_file_default(self):
return 'python'
return 'python.tpl'

output_mimetype = 'text/x-python'
2 changes: 1 addition & 1 deletion nbconvert/exporters/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _file_extension_default(self):

@default('template_file')
def _template_file_default(self):
return 'rst'
return 'rst.tpl'

output_mimetype = 'text/restructuredtext'

Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ScriptExporter(TemplateExporter):

@default('template_file')
def _template_file_default(self):
return 'script'
return 'script.tpl'

def _get_language_exporter(self, lang_name):
"""Find an exporter for the language name from notebook metadata.
Expand Down
2 changes: 1 addition & 1 deletion nbconvert/exporters/slides.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _file_extension_default(self):

@default('template_file')
def _template_file_default(self):
return 'slides_reveal'
return 'slides_reveal.tpl'

output_mimetype = 'text/html'

Expand Down

0 comments on commit a96bfdd

Please sign in to comment.