Implementing a JS templating engine with current PHP project
- by SeanWM
I'm currently working on a PHP project and quickly realizing how useful a templating engine would help me. I have a few tables whose table rows are looped out via a PHP loop. Is it possible to use just a JS templating engine (like Handlebarsjs) to also work with these tables? For example:
$arr = array('red', 'green', 'blue');
echo '<table>';…