开发者

What presentation design pattern fits HTML5 development?

There are various discussions about whether to u开发者_运维技巧se Flash, Silverlight or HTML5. When it comes to Silverlight, it has very different programming experience (more of a desktop model), and this makes it reasonable for Silverlight applications to use MVVP presentation pattern.

But when it comes to pure HTML5-based Web application, is there any well-known presentation design pattern that provides a good fit for them and is often chosen by developers?

Thanks in advance.


I don’t think this area is very well-developed, because there just aren’t that many complex client-side web apps. Generally you do most of your work on the server — HTML (plus CSS) is your presentation layer.

When you are working on the client, the main vague pattern is:

  • HTML is your interface
  • CSS adds custom styles to the HTML (beyond the default styles that the browser assigns to HTML tags)
  • JavaScript adds custom behaviour to the HTML by assigning functions to the available events on HTML tags, via the DOM

I don’t have any Flash or Silverlight experience, hence the vagueness of my answer.

It might be worth reading up a bit on Cappucino, which is a big framework for building complex UIs in HTML.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜