[–] 2 points 5 months ago (1 child)

Twig is easier for security, everything is sanitised by default. Also helps to separate your view layer from your logic.

Think about how Wordpress goes about it, mixed logic and views and needing to wrap everything in an esc html, esc attr or whatever else other functions they have available because they decided to go the native php route.

Twig has a valid role to play in php web dev I reckon.

  • source
  • parent
  • context
  • [–] 12 points 6 months ago (1 child)

    FOSS isn’t a race, FOSS is plant life…it doesn’t need to dominate or win anything. It just needs to survive.

    FOSS is already in most proprietary software already and Linux powers most devices.

    Year of the Linux desktop is a pointless metric.

  • source
  • view more: next ›