Re:Tetra – Full stack reactive component framework for Djang...
by IceWreck on Friday May 27, 2022 @10:45AM
(#31530250)
HTML & CSS in Python is ugly. Is there a way to split those from python ?
[ Parent
| on HN ]
Re:Tetra – Full stack reactive component framework for Djang...
by samwillis on Friday May 27, 2022 @11:09AM
(#31530495)
Yes, you can just set your template to '{% extend "template.html" %}', your styles to '@import "styles.css";", and your script to 'export default from "script.js"'.
However I do think for the small sort of sprinkling of CSS/JS that is common for components you will find that actually having them embedded within the component file an advantage.