您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
AJ ONeal
e9b5a0be39
|
6 年前 | |
---|---|---|
.gitignore | 9 年前 | |
LICENSE | 9 年前 | |
README.md | 9 年前 | |
bower.json | 9 年前 | |
datamapper-ruhoh.js | 6 年前 | |
package.json | 6 年前 |
README.md
datamap-ruhoh
A ruhoh-compatible data mapper for desirae
This mapper attempts to map both ruhoh@1.0
(ruhoh-twitter)
and ruhoh@2.6
(ruhoh-bootstrap-2) views onto the same object.
As it turns out, there don't seem to be any conflicts, but if we find out there are, we can separate into two functions.
npm install --save desirae-datamap-ruhoh
bower install --save desirae-datamap-ruhoh
browser
Desirae.registerDataMapper('ruhoh', exports.DesiraeDatamapRuhoh);
Desirae.registerDataMapper('ruhoh@1.0', exports.DesiraeDatamapRuhoh);
Desirae.registerDataMapper('ruhoh@2.6', exports.DesiraeDatamapRuhoh);
io.js / node.js
Desirae.registerDataMapper('ruhoh', require('desirae-datamap-ruhoh').DesiraeDatamapRuhoh);
Desirae.registerDataMapper('ruhoh@1.0', require('desirae-datamap-ruhoh').DesiraeDatamapRuhoh);
Desirae.registerDataMapper('ruhoh@2.6', require('desirae-datamap-ruhoh').DesiraeDatamapRuhoh);