Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/zkochan/vtag
- Owner: zkochan
- License: mit
- Created: 2015-10-17T21:28:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-25T19:55:29.000Z (about 8 years ago)
- Last Synced: 2024-12-05T01:38:42.161Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)