hairyballs,

Genuine question: what’s wrong with templating engines?

Macil,
@Macil@programming.dev avatar

This looks like how React components are written if you make the weird choice of not using the JSX syntax extension for React elements. I wonder if you could make a JSX-like DSL with Rust macros. JSX really helps for making this kind of stuff bearable.

autokludge,
@autokludge@programming.dev avatar

after a quick search … github.com/bodil/typed-htmlalso leptos uses something similar

Hexarei,
@Hexarei@programming.dev avatar

Web development is, and will always be, just a game of finding increasingly cursed unique ways to concatenate HTML strings

cadekat,

One day I’ll find a reason to use https://docs.rs/yew/0.20.0/yew/macro.html.html. One day.

o11c,

The problem is that what everybody really wants is parameterization, not concatenation. But most solutions therefor are flaky even if they exist.

Ferris,

Wow. Looks like my browser renders imgur nonfunctional at this point. Weird.

Zeth0s, (edited )

I have seen frontends written in c#. Nothing surprises me anymore

etler,

After experiencing struts everything else looks great in comparison

ILikeBoobies,

All programming was intended to take place within Rust

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming_horror@programming.dev
  • kavyap
  • ngwrru68w68
  • GTA5RPClips
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • rosin
  • Leos
  • normalnudes
  • khanakhh
  • cisconetworking
  • cubers
  • InstantRegret
  • ethstaker
  • osvaldo12
  • modclub
  • anitta
  • provamag3
  • tacticalgear
  • tester
  • megavids
  • JUstTest
  • All magazines