Submit

Back to the channels

#primate

  1. * jreicher joined #primate
  2. * phaleth joined #primate
  3. phaleth I think we have the competitor to svelte https://primate.run/docs/frontend/html#component-scoped-assets :D
  4. nevet Primate — HTML
  5. * phaleth joined #primate
  6. blue phaleth: yes
  7. blue also the html handler supports props
  8. phaleth that I remember
  9. blue so really the only thing that's truly missing is components and reactivity. components could work by teaching esbuild about .html imports, but the main question is how would you use them
  10. phaleth ok, I'm gonna replace handlebars with html, this is great
  11. blue yes
  12. blue so import Navbar from "#component/Navbar"; could work for html, but we'd need to find a way to use those in the template. maybe <Navbar> or something, dunno
  13. phaleth xml in html is beautiful https://github.com/primate-run/primate/pull/274/changes :D
  14. nevet website: replace handlebars with html template by phaleth · Pull Request #274 · primate-run/primate
  15. phaleth yeah, I agree, I think the svelte can be replaced slowly, by doing small steps
  16. phaleth reactivity is not needed and components can be replace by typescript
  17. phaleth reactivity can also of course be replaced by typescript
  18. phaleth it's just the concept is not needed
  19. blue yes
  20. phaleth so you can start merging until you run into conflict
  21. phaleth it's just I have no clue how to test RSS, and it will prolly have to be done against live site
  22. blue you just open localhost:6161/blog.rss and see if your browser screams at you
  23. blue it's xml so your browser should colour it
  24. blue anyway, I still regret I have no time for poly. but maybe these html templates are the right direction after all
  25. phaleth browsers are coloring it as xml cause the content-type is correct
  26. blue yes, then copy it and paste it some xml checker
  27. phaleth I think these html templates are the right way to go, I've tried solid quickly and the JS bundle is huge from that one
  28. phaleth yeah, it's a valid xml
  29. phaleth you can try it, if you can be bothered, but it's very straightforward
  30. phaleth time to crash
  31. blue gn
  32. phaleth seeya

Search posts