Permalink
Browse files

Trying out Github's syntax highlighting

  • Loading branch information...
1 parent b937908 commit a5c4da528a08ab3b6290016528f1795cc3985319 @ismasan committed Jul 21, 2011
Showing with 23 additions and 23 deletions.
  1. +23 −23 README.md
View
@@ -11,35 +11,35 @@ JBundle is a Ruby gem.
## Usage
Define a set of javascript files to bundle and minify
+``` ruby
+JBundle.config do
+ version '1.6.1'
- JBundle.config do
- version '1.6.1'
+ src_dir File.dirname(__FILE__) + '/src'
- src_dir File.dirname(__FILE__) + '/src'
+ bundle 'foo.js' do
+ file 'file1.js'
+ file 'file2.js'
+ end
- bundle 'foo.js' do
- file 'file1.js'
- file 'file2.js'
- end
+ bundle 'foo2.js' do
+ file 'file3.js'
+ file 'file4.js'
+ end
- bundle 'foo2.js' do
- file 'file3.js'
- file 'file4.js'
- end
+ file 'file4.js'
- file 'file4.js'
-
- file 'text.txt'
-
- # Filters can be use for string substitution
- filter do |src, config|
- src.gsub(/<VERSION>/, config.version)
- end
-
- target_dir 'dist'
+ file 'text.txt'
+
+ # Filters can be use for string substitution
+ filter do |src, config|
+ src.gsub(/<VERSION>/, config.version)
+ end
+
+ target_dir 'dist'
- end
-
+end
+```
Then write them to the configured target directory
JBundle.write!

0 comments on commit a5c4da5

Please sign in to comment.