awoodsnet,
@awoodsnet@phpc.social avatar

you know, it’s funny. For all the web pages that get created in PHP, a language with native templatng, we haven’t really created good strategies for making it easy to work with markup.

Where’s the discussion of strategies of creating blocks of HTML/XML? of wrapping heredocs / nowdocs in typehinted functions? of making that markup accessible?

heiglandreas,
@heiglandreas@phpc.social avatar

@awoodsnet Isn't PHP more like C -snippets within Markup?

awoodsnet,
@awoodsnet@phpc.social avatar

@heiglandreas yeah, sometimes. and when it is, having a library of HTML “components” functions make a lot of sense

ramsey,
@ramsey@phpc.social avatar

@awoodsnet @heiglandreas I think Hack got close (or achieved) making HTML/XML a first-class citizen in the language, kind of like how React components work.

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