With MVC possible in both ASP.NET MVC and PHP (CodeIgniter, CakePHP etc) what are the options when it comes to using a view engine that could work with both platforms, enabling copy/paste without any changes? Ones I can think of are:

  • NHaml / PHPHaml (not updated for 3 years though) / PHamlP
    I am assuming this works with CodeIgniter or CakePHP, but haven't looked into it in great depth

Any more? Will add to list if there are any more.

+1  A: 

I can't really think of any, but PHPHaml is definitely recommended.

You could try building your own, using .Replace function. Since CodeIgniter has Template Parser Class

string news = "test news template {content} bye";
news = news.Replace("{content}","test content");