Skip to content

treygriffith/oz-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oz-scope

Scoping tag for Oz.

Installation

Using component:

$ component install treygriffith/oz-scope

Using a script tag (UMD compatible)

<script src="./oz-scope.min.js"></script>

Usage

Causes all child DOM nodes to be rendered in the context of the indicated property. If the property has a false-y value, the DOM node is hidden.

Notation:

<div oz-scope="person"></div>

Example:

var context = {
  person: {
    name: 'Tobi'
  }
};
<div oz-scope="person">
  <span oz-text="name">Tobi</span>
</div>

License

MIT

About

Scoping tag for Oz

Resources

Stars

Watchers

Forks

Packages

No packages published