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

Hello, I want to generate this code:

<ion-card>
    <ion-card-header>
        <ion-card-title>Title</ion-card-title>
        <ion-card-subtitle>Subtitle</ion-card-subtitle>
    </ion-card-header>
</ion-card>

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

0
2 comments
Official comment

Hi,

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.

Vaclav

 

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

1

Please sign in to leave a comment.