Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Allen committed Mar 24, 2011
0 parents commit 948c035
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mash.js
13 changes: 13 additions & 0 deletions mash.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

class Masher
constructor: (config) ->
@config = config
execute: (profile, type, debug = false) ->
if !debug
files = @config[profile][type]
html = for file in files
if type is "css"
"<link href='#{ file }' type='text/css' rel='stylesheet'>"
else if type is "js"
"<script src='#{ file }'></script>"
html.join ''

0 comments on commit 948c035

Please sign in to comment.