Commit 6e0a4d70 authored by Paul's avatar Paul
Browse files

Use angle brackets to prevent formatting problems

parent 095c2a49
......@@ -11,13 +11,13 @@
namespace rtg {
{%
<%
interface('operation',
virtual('name', returns='std::string', const=True),
virtual('compute_shape', returns='shape', input='std::vector<shape>', const=True),
virtual('compute', returns='argument', input='std::vector<argument>', const=True)
)
%}
%>
} // namespace rtg
......
......@@ -231,8 +231,8 @@ def interface(name, *members):
return generate_form(name, members)
def template_eval(template,**kwargs):
start = '{%'
end = '%}'
start = '<%'
end = '%>'
escaped = (re.escape(start), re.escape(end))
mark = re.compile('%s(.*?)%s' % escaped, re.DOTALL)
for key in kwargs:
......
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