|[Acceleo] Can I modify a section of a template from another section? [message #791991]
||Mon, 06 February 2012 08:49
| Seref Arikan
Registered: August 2010
I've used stringtemplate before, and I'm used to adding content to fields on a template as a go along. An example would be walking a tree structure based on EMF: as I encounter new types, I'd be adding them to imports section of the file that must be generated.
It appears that with Acceleo, if I have a call to a java service wrapper at the beginning of the template, that call is performed, and that is it.
I want to make sure that I understand the usage of Acceleo correctly. In that case, I'd have to explore the tree structure for imports (possibly through a template that produces imports only), then I'd have to repeat the walk over the tree again, this time for different output. There is no "state" to keep among calls contained in a template.
Is this the correct approach?
Powered by FUDForum
. Page generated in 0.01665 seconds