##// END OF EJS Templates
try to play with data display priority
try to play with data display priority

File last commit:

r9049:ec3b152d
r9049:ec3b152d
Show More
runme.py
11 lines | 231 B | text/x-python | PythonLexer
Matthias BUSSONNIER
basic test for converter template
r9011 #!/usr/bin/env python
Matthias BUSSONNIER
starting templates
r8994 # coding: utf-8
Matthias BUSSONNIER
try to play with data display priority
r9049
Matthias BUSSONNIER
fix utf8
r9014 from __future__ import print_function
Matthias BUSSONNIER
null template
r8997 import sys
Matthias BUSSONNIER
handle unicode output
r9003 import io
Matthias BUSSONNIER
starting templates
r8994 from converters.template import *
Matthias BUSSONNIER
null template
r8997 C = ConverterTemplate(tplfile=sys.argv[1])
Matthias BUSSONNIER
try to play with data display priority
r9049 C.read(sys.argv[2])
Matthias BUSSONNIER
null template
r8997
Matthias BUSSONNIER
fix utf8
r9014 print(C.convert().encode('utf-8'))