BT

InfoQ Homepage News webOS 3.0 Is Based on Enyo, a New HTML Framework

webOS 3.0 Is Based on Enyo, a New HTML Framework

Bookmarks

 HP launched TouchPad, a tabled based on webOS 3.0, on July 1st. webOS 3.0 has a completely new application framework that generates web applications that can run in any WebKit browser.

image

HP entered the tablet market with HP TouchPad on July 1st, a year after purchasing Palm along with webOS, the Linux-based operating system that powers it. In the same time they made available webOS SDK and PDK 3.0, a set of tools for developers interested in writing applications for HP TouchPad.

HP prepared webOS 3.0 for tablets (TouchPad has 1024 x 768 pixels) but support for smartphones and other form factors will follow. HP replaced the Mojo application framework with Enyo, a framework that is fully prepared for the web. Developers use the SDK to write JavaScript applications that are later converted into HTML that can run into a WebKit browser window, be it the webOS browser or a WebKit desktop browser such as Google Chrome or Apple Safari.

For those not happy with JavaScript development the PDK (Plug-in Development Kit) offers the option to create C/C++ applications that are converted into browser plug-ins, or even JavaScript-C/C++ hybrid applications, the final result remaining in the domain of web applications. The PDK includes a GCC compiler, Simple DirectMedia Library (SDL) and OpenGL library for additional support for multimedia and games.

Enyo consists of a number of UI controls and utilities that resemble a DOM node and are actually converted into one upon processing. This is how a control looks like:

enyo.create({   nodeTag: "span",   className: "a-css-class",   style: "color: purple;",   content: "Hello World" }).renderInto(document.body);

And this is the resulting HTML:

<span id="control" class="a-css-class" style="color: purple;">Hello World</span>

Legacy Mojo applications are supported by webOS 3.0 through compatibility mode, but developers need to use earlier emulator images because SDK 3 supports only the TouchPad emulator. As a side note, the emulator runs on VirtualBox, a virtualization product from Oracle.

Development with SDK can be done on Windows, Mac OS X and Linux, while PDK is integrated with Visual Studio on Win and Xcode on Mac, but it is not supported on Linux.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • Ugh

    by N T /

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Sounds like a load of crap to me. Why go jumping through all these layered hoops to develop for a platform that is a non-starter? If I were launching a new tablet OS, I would basically make it as simple and mainstream as possible to begin with. What are all these cross compilation / conversion malarkies?

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.