proteinevolution / Toolkit

The MPI Bioinformatics Toolkit
https://toolkit.tuebingen.mpg.de
Apache License 2.0
62 stars 14 forks source link

Static HTML code #249

Closed zy4 closed 6 years ago

zy4 commented 6 years ago

Bigger portions of static html code can be put in twirl templates and loaded async into the vdom. This makes the html more maintainable, e.g. the updates sections.

Writing many lines of static html in native mithril is not very convenient.

JoKuebler commented 6 years ago

Is there an example we use already where I can see how this is done. I tried for a while but always a little confused with the controllers and how to load the template in the vdom.

zy4 commented 6 years ago

Sure, we do it with all the result views, also the help pages are embedded that way.

felixgabler commented 6 years ago

I did it for the updates/quicklinks section. I didn't find another place where it seemed necessary.