是否有一种与语言和平台无关的声明式 GUI 语言不是 XML?
基本上,我正在寻找一种最小公分母声明式 GUI 语言,它非常适合使用 JavaScript 渲染到 HTML/CSS、使用 Python 渲染到 wxPython、使用 C# 渲染到 WinForms...强调最小公分母。否则,我完全知道这几乎是不可能的。基本上,JSON 用于声明性 GUI 而不是数据。
哦,是的,真正的问题是:没有 XML。时期。理想情况下,语法类似于 Markdown,但看起来不像代码。
如果您不知道任何这样的事情,您可以就您认为它应该是什么样子以及您认为它应该(或可以)如何工作发表一些想法,因为我正计划自己创建一个。我只是确保我没有重新发明轮子。
Basically, I'm looking for a least common denominator declarative GUI language that would be perfectly suitable for rendering with JavaScript to HTML/CSS, with Python to wxPython and with C# to WinForms... emphasis on the least common denominator. Otherwise, I'm perfectly aware this is almost impossible. Basically, JSON for declarative GUIs rather than data.
Oh yeah, and the real kicker: no XML. Period. Ideally, the syntax would be something like Markdown where it doesn't look like code.
If you don't know of any such thing, you can just post some ideas on what you think it should look like and how you think it should (or could) work, because I was planning on creating one myself. I'm just making sure I'm not reinventing the wheel.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
听起来您已经厌倦了 XML。如果您不喜欢雪(见上文),请尝试curl http://groups.csail.mit .edu/cag/curl/
Sounds like you're tired of XML. If you don't like Snow (see above) try curl http://groups.csail.mit.edu/cag/curl/
Qooxdoo 是一项出色的 Web GUI 技术。有一个名为 Tartan Blueprint 的新序列化项目,它允许从序列化 JSON 生成 Qooxdoo 客户端应用程序。它是纯 JSON 和 OO javascript。没有 XML。 JSON 可以手动生成,也可以通过任何可以生成有效 JSON 的代码生成。看看……
公告:
http://news.qooxdoo.org/the-week- in-qooxdoo-2009-10-02
Qooxdoo is an awesome GUI technology for the web. There is a new serialization project called Tartan Blueprint that allows the generation of Qooxdoo client apps from serialized JSON. Its pure JSON and OO javascript. No XML. The JSON can be generated by hand or by any code that can generate valid JSON. Take a look...
The announcement:
http://news.qooxdoo.org/the-week-in-qooxdoo-2009-10-02
我认为 3 个月后可以肯定地说答案是否。
I think it's safe to say after 3 months that the answer is no.
嗯,HTML 有点渴望实现这一点。 wiki 标记怎么样?
Well, HTML kind of aspires to that. How about wiki markup?
你见过雪吗?
Have you seen Snow?