public
Description: A simple base for HTML, CSS & Javascript
Homepage:
Clone URL: git://github.com/kneath/html-base.git
name age message
file .gitignore Thu Oct 09 01:57:30 -0700 2008 Initial commit [kneath]
file LICENSE Thu Oct 09 01:59:48 -0700 2008 License file should be in root [kneath]
file README.markdown Thu Oct 09 02:00:40 -0700 2008 Add credit lines [kneath]
directory css/ Thu Oct 09 12:16:43 -0700 2008 Add IE6/7 specific styles [kneath]
file index.html Thu Oct 09 12:16:43 -0700 2008 Add IE6/7 specific styles [kneath]
directory js/ Thu Oct 09 02:08:58 -0700 2008 InsertPartial spec helper: remove htmlContainer... [kneath]
README.markdown

HTML Base

This is a simple set of files that I usually start off with whenever starting a new HTML based project. It's mostly here to save for my common Javascript components that I may or may not use in a given project. Everything here is built with MooTools (1.2).

Javascript Breakdown

I like to split my Javascripts up into multiple directories to simplify development. My scripts.js handles the loading of these and assumes you keep a similar directory structure.

  • /lib/ - For self-sustaining javascript libraries (no library requirement).
  • /plugins/ - For generic libraries/plugins/functionality that depend on other libraries.
  • /modules/ - Useful for widget-specific functionality encapsulation. May depend on libraries and plugins.
  • /specs/ - Contains all Javascript Specs (you're testing your Javascript, right?)
  • /application.js - This should hold all triggers for javascript execution (the things that activate a given module/plugin/library).

Credit

Created by Kyle Neath. http://kyleneath.com http://warpspire.com