Does any one know how to generate an ion-card?

Hello, I want to generate this code:


But I dont know how to generate.

Firstable, I created a concept called IonCard with the properties "Title" and "Subtitle" and also I created a concept editor for the concept of IonCard that has the 2 properties of the concept (title and subtitle).

The problem comes when I created a template declaration, I dont know what to write because the code that I have previusly written above I cant write it.

Can you help me?? Please

Official comment


I suggest to take inspiration from the StateChart sample project (bundled with MPS). Your generator must import the j.m.core.xml language, so that you can create "xml files" as templates.



Thanks for your help Vaclav Pech. Your answer has helped me a lot.


Please sign in to leave a comment.