[module startInlinedEndNotInlinedTextBeforeTextAfter('http://www.eclipse.org/emf/2002/Ecore')/]

[comment @main /]
[template public myTemplate(myParam : ecore::EPackage)]
  [file (myParam.name + '.txt', overwrite)]
    first line
    BEFORE_TEXT [for (myVariable : ecore::EClassifier | myParam.eClassifiers)][myVariable.name/]
                [/for] AFTER_TEXT
    last line
  [/file]
[/template]