Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use data attributes instead of classes for binding #40

Closed
brunschgi opened this issue Feb 27, 2015 · 1 comment
Closed

Use data attributes instead of classes for binding #40

brunschgi opened this issue Feb 27, 2015 · 1 comment
Assignees
Milestone

Comments

@brunschgi
Copy link
Owner

To provide more flexibility we are going to change the naming conventions.
Instead of using classes – .mod .mod-xyz – we will switch to data attributes.

This makes the binding completely independent from styling, so that TerrificJS is compatible with all CSS modularization «philosophies» (e.g. BEM, Atomic Design etc.).

@brunschgi brunschgi added this to the 3.0.0 milestone Feb 27, 2015
@brunschgi
Copy link
Owner Author

The new naming conventions will be:

  • .mod .mod-foo => data-t-name="foo"
  • .mod .mod-foo skin-foo-bar => data-t-name="foo" data-t-skin="bar"
  • data-connectors="overview" => the current connector stuff will be replaced with a more standard EventEmitter

brunschgi added a commit that referenced this issue Mar 25, 2015
#47 simplified decorators, #20 better tidy up of components
@brunschgi brunschgi self-assigned this May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant