Alternatives to Blade

By @dmvk · 2021-09-06 17:01

Alternatives to Blade

  • By @atymic · 2021-09-10 07:48

    I guess it really depends on the format of your old views. Is there some sections where the content is consistent? I've previously taken the approach of breaking files into sections, and splitting the bits out into files automatically. For example, parse an old template, remove the menu and replace it with a @include or whatever, replace all instances of <?= $var ?> with {{ $var }}, etc. Chances are you're still going to end up having to do some manual work.

    Once you're ported, write a script to query the old and new codebases and diff the responses to see what's different.