Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zkochan/vtag

Virtual tags for virtual DOM.
https://github.com/zkochan/vtag

Last synced: 28 days ago
JSON representation

Virtual tags for virtual DOM.

Awesome Lists containing this project

README

        

# vtag

Virtual tags for [virtual-dom](https://github.com/Matt-Esch/virtual-dom/).

[![Dependency Status](https://david-dm.org/zkochan/vtag/status.svg?style=flat)](https://david-dm.org/zkochan/vtag)
[![Build Status](https://travis-ci.org/zkochan/vtag.svg?branch=master)](https://travis-ci.org/zkochan/vtag)
[![npm version](https://badge.fury.io/js/vtag.svg)](http://badge.fury.io/js/vtag)

## Installation

```
npm install --save vtag
```

## Usage

``` js
var h = require('virtual-dom/h');
var vtag = require('vtag')(h);

var vtree = h('html', [
h('head', [
vtag.css('/foo.css') // creates
]),
h('body', [
vtag.js('/bar.js') // creates
])
]);
```

## License

MIT © [Zoltan Kochan](https://www.kochan.io)