开发者

Portable View Engine Options (PHP / ASP.NET)

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 ch开发者_JAVA百科anges? 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.


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"); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜