Commit c3ce914a authored by Maxime Perrotin's avatar Maxime Perrotin

Add stringtemplate backend for buildsupport

parent 5ead7462
group taste;
interface_view(arrsFunctNames) ::= <<
-- TASTE Interface View
<arrsFunctNames: {each|Function <each>}; separator="\n">
>>
#!/usr/bin/env python2
import iv
import stringtemplate3
STG = None
new = lambda inst: STG.getInstanceOf(inst)
def initialize_stg(stgfile='iv.st'):
''' Load the STG backend and set gobal STG pointer '''
global STG
# Load the file containing a group of templates
STG = stringtemplate3.StringTemplateGroup(file=open(stgfile))
initialize_stg()
tpl = new("interface_view")
tpl['arrsFunctNames'] = iv.functions.keys()
print str(tpl).encode('latin1')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment