示例#1
0
 def title_from_filename(filename):
     if filename.endswith('.js'):
         filename = filename.replace('Example', '').replace('.js', '')
         return common.camel_to_space(filename) + ' (Node.js)'
     elif filename.endswith('.html'):
         filename = filename.replace('Example', '').replace('.html', '')
         return common.camel_to_space(filename) + ' (HTML)'
     else:
         raise common.GeneratorError('Invalid filename ' + filename)
 def title_from_filename(filename):
     if filename.endswith('.js'):
         filename = filename.replace('Example', '').replace('.js', '')
         return common.camel_to_space(filename) + ' (Node.js)'
     elif filename.endswith('.html'):
         filename = filename.replace('Example', '').replace('.html', '')
         return common.camel_to_space(filename) + ' (HTML)'
     else:
         raise common.GeneratorError('Invalid filename ' + filename)
 def title_from_filename(filename):
     filename = filename.replace('Example', '').replace('.nb.txt', '')
     return common.camel_to_space(filename)
示例#4
0
 def title_from_filename(filename):
     filename = filename.replace('Example', '').replace('.pas', '')
     return common.camel_to_space(filename)