softlang / metalib

A Chrestomathy of DSL implementations
https://softlang.github.io/metalib
9 stars 1 forks source link

Rendering overhaul proposals #10

Closed rlaemmel closed 7 years ago

rlaemmel commented 7 years ago

Here are some proposals for making the rendering results look better.

I don't try to say in each case exactly what should be done, but I am providing some "constraints".

I add more things as I figure them out.

johanneshaertel commented 7 years ago

Point 2 and 4 is related to the way I inserted the models into metalib. Until this point, the rendering needs information to be almost complete. So indeed, I generate missing things in my transformation (headlines when undefined) since I do not want to repeat. Maybe we should include this logic into the rendering.

rlaemmel commented 7 years ago

Issue 2: Yes, we do not want redundancy. Headline is optional for sections. So rendering must deal with missing headline in sections.

Issue 4: Headline is mandatory for contributions. It must be carefully authored and not generated.