40ants / reblocks

A fork of Weblocks Common Lisp web framework
https://40ants.com/reblocks/
Other
52 stars 10 forks source link

Document using Weblocks with Mito (double metaclass inheritance) #16

Open vindarel opened 5 years ago

vindarel commented 5 years ago

https://stackoverflow.com/questions/53694551/common-lisp-multiple-metaclasses

self-assigned to me.

Or document only in the Cookbook ?

svetlyak40wt commented 5 years ago

This could be an interesting solution, however, I think it is better to include a model object into in widget object and separate code responsible for business logic and for rendering.

osktyn commented 5 years ago

Hi.

Perhaps document usage of mito in conjunction with the tasks app in the quickstart. There already is an in-memory state (a list of tasks), all it needs is persistence. Mito would track name and todo-status, aswell as automatically add created_at and modified_at fields. Could be a nice example.

Anyway, I think that's a place where it would fit nicely in with the other material you already have.

(I asked the inital SO question)