|
|
|
|
|
by decasteve
4088 days ago
|
|
I've also toyed with a similar idea. I'm not a huge fan of writing anything "significant" in PHP but it does make html templating convenient. I would rather write the bulk of my code in a language like C++ or Rust, and then pass off to PHP to do the html (or json or xml) view. |
|
When you use a templating engine, you can change the backend entirely without messing with the template. You can also compile/optimize the display of data in the template more easily.
Some awesome person has made a Jinja2 lib that comes with Rust bindings, which looks cool (though I haven't tried it yet): https://github.com/jroweboy/jinja2-c