Code Monkey home page Code Monkey logo

types's Introduction

[DEPRECATED] Binding types for SkateJS

PLEASE NOTE: Custom types have been deprecated and will not work in Skate 1.x+. They will continue to work in 0.x releases.

This repository contains binding types for SkateJS components. Included types are:

attribute

A binding for using attribute names to identify a component.

<div attribute-name></div>
skate('attribute-name', {
  type: skateTypes.attribute
});

Attributes are a great way to mix in functionality but lack the explicitness of tag names so only use them when you can't use tag names.

classname

A binding for using class names to identify a component.

<div class="class-name"></div>
skate('class-name', {
  type: skateTypes.classname
});

Class names are the least preferred method of binding behaviour to an element because classes are for styling, not behaviour. However, if you can't use tags or attributes for whatever reason, then this binding will allow you to use a class name.

types's People

Contributors

joscha avatar jpnelson avatar treshugart avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

emna-com

types's Issues

Global is not exposed properly

There is no global in the dist and in the lib there is this code:

if (typeof define === 'function' && define.amd) {
    define(['exports', 'module'], factory);
  } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {
    factory(exports, module);
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports, mod);
    global.unknown = mod.exports;
  }

This seems to expose the global as window.unknown I'd say this is probably not what we want as API?

How to use this with skate?

I'm neither sure how to plug this into skate, nor how to use this without ES6 loading mechanics.

I use webpack which uses commonjs or fallbacks to global bars. This repo seems to use neither of them?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.