joosy 1.2.0.alpha.34 → 1.2.0.alpha.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bower.json +1 -1
- data/package.json +2 -2
- data/tasks/joosy.coffee +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6c4ed7e7ee1c6bf35ad20883aff67fe8161ae4d
|
|
4
|
+
data.tar.gz: 9cb7134f6765d40fae9096222136b1cc9d8f4cbe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65c34e3d1248c4816fa036f5c09e4e79fee3b7bc60875187ecc4c5c5ff9ff68bc83db6fea61af7d233e39c10c241902d461f870f6cf1b9917d74f6106336b92a
|
|
7
|
+
data.tar.gz: 6eae6982f06e784364316551386e0609df08c9cf2774fc39deff51083705544cfb20a384e4ef191441dcfe5706320d1fe1fcb869d61d512560ce676eb63ece00
|
data/bower.json
CHANGED
data/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"keywords": [
|
|
5
5
|
"joosy"
|
|
6
6
|
],
|
|
7
|
-
"version": "1.2.0-alpha.
|
|
7
|
+
"version": "1.2.0-alpha.35",
|
|
8
8
|
"author": "Boris Staal <boris@staal.io>",
|
|
9
9
|
"homepage": "http://joosy.ws/",
|
|
10
10
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"nib": "~0.9.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"grunt-mincer": "~0.3.
|
|
40
|
+
"grunt-mincer": "~0.3.2",
|
|
41
41
|
"grunt-contrib-jasmine": "~0.5.1",
|
|
42
42
|
"grunt-contrib-watch": "~0.4.4",
|
|
43
43
|
"grunt-contrib-coffee": "~0.7.0",
|
data/tasks/joosy.coffee
CHANGED
|
@@ -72,14 +72,15 @@ module.exports = (grunt) ->
|
|
|
72
72
|
callbacks.success?() if deepness == 0
|
|
73
73
|
|
|
74
74
|
haml:
|
|
75
|
-
compile: (file, partials=paths.haml, environment='development') ->
|
|
75
|
+
compile: (file, partials=paths.haml, environment='development', locals={}) ->
|
|
76
76
|
HAMLC = require 'haml-coffee'
|
|
77
77
|
|
|
78
78
|
HAMLC.compile(grunt.file.read file)(
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
Object.merge locals,
|
|
80
|
+
environment: environment
|
|
81
|
+
config: grunt.config.get('joosy.config') || {}
|
|
82
|
+
partial: (location, locals) ->
|
|
83
|
+
grunt.joosy.haml.compile(Path.join(partials, location), partials, environment, locals)
|
|
83
84
|
)
|
|
84
85
|
|
|
85
86
|
server:
|
|
@@ -141,11 +142,10 @@ module.exports = (grunt) ->
|
|
|
141
142
|
)
|
|
142
143
|
|
|
143
144
|
serveStatic: (server, compress=false) ->
|
|
144
|
-
Gzippo = require 'gzippo'
|
|
145
|
-
|
|
146
145
|
unless compress
|
|
147
146
|
server.use connect.static(paths.public)
|
|
148
147
|
else
|
|
148
|
+
Gzippo = require 'gzippo'
|
|
149
149
|
server.use Gzippo.staticGzip(paths.public)
|
|
150
150
|
|
|
151
151
|
console.log "=> Serving static from /#{paths.public}"
|