Hemi JavaScript Framework

Hemi.app.dwac

Description

Distributed Application Components extends the Application Component to support a single file deployment. Application Components, Templates, Fragments, Modules, and Tasks may be combined into a single XML file for ease of sharing and reuse.

Class Index

static Hemi.app.dwac.DistributedComponent

version 3.1.0

Static initializer for DWAC objects. DWAC objects are special constructs of Application Components.

Index

Method Index

Methods

newInstance

Syntax

d = newInstance( o, u, t, k, i )

Parameters

Returns

d as DWACInstance: Instance of an ApplicationComponent instrumented with the DWAC loader.

Hemi.app.dwac.DistributedComponentInstance

version 3.1.0

An Application Component instance decorated with the DWAC loading modifiers.

Index

Example Index

Examples

Create a new DWAC Instance #1

Demonstrate how a DWAC can be used.

Example Code

<div id = "oExampleDiv"></div>
<script type = "text/javascript">
window.onload = function(){
   var oDWAC = Hemi.app.dwac.newInstance(;
      document.getElementById("oExampleDiv")
      ,"/Path/To/Dwac.xml"
      ,"Example Template 1"
   );
}
</script>