High Complexity
- index.html
- css/
- styles.css
- js/
- scripts.js
Low Complexity
- Logo/
- logo.html
- css/
- Logo.css
- js/
- Tc.Module.Logo.js
- Navigation/
- navigation.html
- css/
- Navigation.css
- js/
- Tc.Module.Navigation.js
A Terrific module is made of HTML, JS and CSS
<!-- Logo/logo.html -->
<div class="mod modLogo">
<!-- here comes your markup -->
</div>
<!-- another logo module instance -->
<div class="mod modLogo">
<!-- your other markup -->
</div>
HTML
/* Logo/css/Logo.css */
.modLogo {
...
}
.modLogo ul {
...
}
CSS
/* Logo/js/Tc.Module.Logo.js */
(function($) {
Tc.Module.Logo = Tc.Module.extend({
dependencies: function() { },
beforeBinding: function() { },
onBinding: function() { },
afterBinding: function() { }
});
})(Tc.$);
JS
Learn more about the
Naming Conventions that wire up everything for you in the background.