Re:Tetra – Full stack reactive component framework for Djang...
by samwillis on Saturday May 28, 2022 @11:39AM
(#31541158)
Thanks, there was an error in the docs, public methods that are watching an attribute should be `def name(self, value, old_value, attr)`. "attr" is the name of the attribute that has changed. Fixed!
[ Parent
| on HN ]
Re:Tetra – Full stack reactive component framework for Djang...
by dagw on Saturday May 28, 2022 @03:11PM
(#31542858)
While I'm suggesting changes, you should probably make it clear that you have to link in bootstrap and font-awesome explicitly in your template to make all the styling work. I initially assumed that it was somehow included in tetra and it took me a second to work out why all the styling was missing.
Re:Tetra – Full stack reactive component framework for Djang...
by samwillis on Saturday May 28, 2022 @04:09PM
(#31543333)
Oh that’s just for the docs and demo site, no need for bootstrap or font-awesome at all. You can use whatever you want.
Re:Tetra – Full stack reactive component framework for Djang...
by dagw on Saturday May 28, 2022 @04:50PM
(#31543717)
Yea, I got that. But if someone is just following along the demo in the docs they won't get the results they'll be expecting unless they add bootstrap and font-awesome. It's probably worth mentioning that they should add the relevant imports to the template index.html for the demo.