##// END OF EJS Templates
Start to think on api...
Matthias BUSSONNIER -
Show More
@@ -147,7 +147,12 b' class ConverterTemplate(Configurable):'
147 return converted_cells
147 return converted_cells
148
148
149 def convert(self, cell_separator='\n'):
149 def convert(self, cell_separator='\n'):
150 return self.template.render(worksheets=self.process(), inlining=inlining)
150 """ convert the ipynb file
151
152 return both the converted ipynb file and a dict containing potential
153 other resources
154 """
155 return self.template.render(worksheets=self.process(), inlining=inlining),{}
151
156
152
157
153 def read(self, filename):
158 def read(self, filename):
@@ -8,4 +8,6 b' from converters.template import *'
8 C = ConverterTemplate(tplfile=sys.argv[1])
8 C = ConverterTemplate(tplfile=sys.argv[1])
9 C.read(sys.argv[2])
9 C.read(sys.argv[2])
10
10
11 print(C.convert().encode('utf-8'))
11 output,rest = C.convert()
12
13 print(output.encode('utf-8'))
General Comments 0
You need to be logged in to leave comments. Login now