我可以在没有 Ruby 的情况下使用 SproutCore 吗?
SproutCore据说是一个JavaScript框架,那么在服务器端完全没有Ruby(实际上是PHP或Java)的情况下如何使用它呢?
SproutCore is said to be a JavaScript framework, so how to use it entirely without Ruby (actually with PHP or Java) on server side?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
构建工具是用 ruby 编写的。除非你想自己动手,否则我认为你无法在没有 ruby 的情况下构建客户端代码或使用 sc-server 之类的事情。
也就是说,构建工具只是一组帮助您开发的工具。 SC 不关心你服务器上有什么。只要你的服务器返回 json,你就可以开始了。
事实上,您可以使用固定装置
http:// wiki.sproutcore.com/DataStore-Using+Fixtures
the build tools are written in ruby. Unless you want to roll your own I don't think you will be able to do things like build your client side code or use sc-server without ruby.
That said, the build tools are just a set of tools to help you develop. SC doesn't care what you have on the server. As long as your server returns json, you are good to go.
In fact, you can build a lot of your client side functionality without the server using fixtures
http://wiki.sproutcore.com/DataStore-Using+Fixtures
正如 hvgotcodes 所说,对于开发,您需要 Ruby 作为构建工具。不过,如果您愿意的话,也可以使用一些 Node.js 工具。此外,人们对制作构建工具二进制文件抱有浓厚的兴趣。这将允许 SC 开发而无需在本地安装 Ruby。
As hvgotcodes said, for development you'll need Ruby for the build tools. However, there are also some node.js tools available if you'd rather go that route. Furthermore, there is strong interest in making a build tools binary. This would allow SC development without having to install Ruby locally.