blob: e0f7ed8eb064e377a983fee588eb7c1023bd42c3 [file] [log] [blame]
package custTemplates
import org.eclipse.app4mc.amalthea.model.Amalthea
import org.osgi.service.component.annotations.Component
import templates.M2T_Output_Transformer
@Component(property=#["service.ranking:Integer=10"],service=M2T_Output_Transformer)
class CustTransformer extends M2T_Output_Transformer {
/**
* Creates output with a "template only" style (like Xpand/Xtend).
*/
override String generateOutput1(Amalthea amalthea) '''
Customer template
«super.generateOutput1(amalthea)»
'''
/**
* Creates output with a combination of template and functions.
* This allows a more flexible use of utility functions and lambdas.
*/
override String generateOutput2(Amalthea amalthea) '''
Customer template
«super.generateOutput2(amalthea)»
'''
}