有没有可能在PHP中使用Google closure soy模板?一些类生成器,它生成PHP类而不是JAVA类,或者在php代码中使用soy模板?我喜欢在两端使用相同模板的想法(客户端使用Javascript,服务器使用JAVA )。
发布于 2013-02-26 20:03:47
我还没有试过这个,但看起来很好,正是你需要的。
https://github.com/kennberg/php-closure
功能:
使用谷歌Closure Compiler
发布于 2013-08-12 00:02:32
这可以通过两个步骤来完成:
JAVA编写一个C/C++适配器,它通过调用官方的
发布于 2015-07-14 03:26:27
我做了一个闭包模板的实验分支,它支持将*.soy文件编译成PHP。
你可以在GitHub上获取它:https://github.com/oujesky/closure-templates
https://stackoverflow.com/questions/13382379
复制相似问题