最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Low-level javascript framework that abstracts away htmlcss? - Stack Overflow

programmeradmin3浏览0评论

Honestly, now when we have so many javascript features on the frontend I really wish javascript in the browsers could replace html and css entirely.

We could deal with objects (structure + design + functionality) instead of html elements and css that style these elements.

But since that is never going to happen, I wonder if there is any low-level framework that abstracts away html and css entirely, like node.js (not high-level like Sproutcore) but for the frontend?

I think that would be the next big thing :)

Honestly, now when we have so many javascript features on the frontend I really wish javascript in the browsers could replace html and css entirely.

We could deal with objects (structure + design + functionality) instead of html elements and css that style these elements.

But since that is never going to happen, I wonder if there is any low-level framework that abstracts away html and css entirely, like node.js (not high-level like Sproutcore) but for the frontend?

I think that would be the next big thing :)

Share Improve this question edited Mar 29, 2011 at 17:12 700 Software 88k88 gold badges242 silver badges347 bronze badges asked Oct 21, 2010 at 2:55 ajsieajsie 79.9k110 gold badges284 silver badges387 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 9

I think that a framework that abstracts away html and css, would by definition, be high level. So you are asking an invalid question.

I consider these all high level frameworks, but they are the only ones I am aware of that abstract away html and css.

  • qooxdo
  • gwt (Google Web Toolkit)
  • pyjamas
  • cappuccino

This would've been easy if all browsers follow a strict standard. So the case now is that you will eventually find yourself needing to tweak the "low-level" javascript/css to make it patible to all major browsers.

JQuery already gives an abstraction to cross-browser patibilities but still considered low-level in your definition since you will still need to manipulate elements by yourself.

There are many attempts to "objectify" at least html, especially when using Java and server-side programming which includes Wicket, Groovelets and the aforementioned GWT to name a few.

Gwt does that using Java. So all you have to do deal is with java objects and the tree that make to contain other objects. Though with UI binder they have kinda brought back the old html.

And going by the limited reading of Sproutcore, GWT does something similar too. GWT can be used to make server sessionless i.e. it doesn't recognize the user but only serves the data.

In my project we are using GWT to have business logic coded in GWT which asks for data which the widget require from server.

Try Google Closure Library. Its a low level framework. It has similarities with CommonJS (like goog.require, but differs as it has its own goog.exportSymbol & goog.exportProperty rather than module.exports). However, it does not pletely abstract away html/css!

发布评论

评论列表(0)

  1. 暂无评论