Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
c3ce914a
Commit
c3ce914a
authored
Jul 24, 2016
by
Maxime Perrotin
Browse files
Add stringtemplate backend for buildsupport
parent
5ead7462
Changes
2
Hide whitespace changes
Inline
Side-by-side
misc/iv.st
0 → 100644
View file @
c3ce914a
group
taste
;
interface_view
(
arrsFunctNames
)
:
:=
<<
--
TASTE
Interface
View
<
arrsFunctNames:
{
each
|
Function
<
each
>
};
separator=
"\n"
>
>>
misc/iv_stg.py
0 → 100755
View file @
c3ce914a
#!/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'
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment