File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040
4141* [ requirejs] ( https://github.com/jooby-project/jooby/tree/master/jooby-assets-requirejs ) : r.js optimizer.
4242
43- * [ yui-js] ( https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor ) : YUI JS optimizer.
43+ * [ yui-js] ( https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor#yui-js ) : YUI JS optimizer.
Original file line number Diff line number Diff line change 1111 <groupId >org.jooby</groupId >
1212 <artifactId >jooby-assets-auto-prefixer</artifactId >
1313 <version >{{version}}</version >
14+ <scope >provided</scope >
1415</dependency >
1516```
1617
@@ -75,3 +76,7 @@ Output:
7576```
7677
7778For complete documentation about available options, please refer to the <a href =" https://github.com/postcss/autoprefixer " >autoprefixer</a > site.
79+
80+ # see also
81+
82+ {{available-asset-procesors.md}}
Original file line number Diff line number Diff line change 11# props
22
3- Replace ``` ${expressions } ``` with a value from ``` application.conf ``` .
3+ Replace ``` ${} ``` expressions with application properties .
44
55{{assets-require.md}}
66
@@ -18,8 +18,30 @@ assets {
1818}
1919```
2020
21+ ## example
22+
23+ application.conf:
24+
25+ ```
26+ foo = bar
27+ ```
28+
29+ app.js:
30+
31+ ``` js
32+ (function (foo ) {
33+ console .log (foo);
34+ })(" ${foo}" )
35+ ```
36+
37+ prints:
38+
39+ bar
40+
2141## options
2242
43+ It replaces ` ${} ` expressions, the ` delims ` options allow you to change this:
44+
2345```
2446assets {
2547 ...
Original file line number Diff line number Diff line change 99``` xml
1010<dependency >
1111 <groupId >org.jooby</groupId >
12- <artifactId >jooby-sass</artifactId >
12+ <artifactId >jooby-assets- sass</artifactId >
1313 <version >{{version}}</version >
14+ <scope >provided</scope >
1415</dependency >
1516```
1617
@@ -51,3 +52,7 @@ assets {
5152
5253}
5354```
55+
56+ # see also
57+
58+ {{available-asset-procesors.md}}
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ An [AssetAggregator]({{defdocs}}/assets/AssetAggregator.html) that creates SVG s
99``` xml
1010<dependency >
1111 <groupId >org.jooby</groupId >
12- <artifactId >jooby-svg-sprites</artifactId >
12+ <artifactId >jooby-assets- svg-sprites</artifactId >
1313 <version >{{version}}</version >
14+ <scope >provided</scope >
1415</dependency >
1516```
1617
@@ -61,3 +62,7 @@ assets {
6162```
6263
6364Please refer to <a href =" https://github.com/drdk/dr-svg-sprites " >dr-svg-sprites</a > for more details.
65+
66+ # see also
67+
68+ {{available-asset-procesors.md}}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ SVG ```symbol``` for icons: merge svg files from a folder and generates a ```spr
1111 <groupId >org.jooby</groupId >
1212 <artifactId >jooby-assets-svg-symbol</artifactId >
1313 <version >{{version}}</version >
14+ <scope >provided</scope >
1415</dependency >
1516```
1617
@@ -131,3 +132,7 @@ svg.approved {
131132```
132133
133134This option is useful for generating more specific css class selectors.
135+
136+ # see also
137+
138+ {{available-asset-procesors.md}}
Original file line number Diff line number Diff line change @@ -49,14 +49,15 @@ assets {
4949
5050## options
5151
52- ```
52+ ``` js
5353assets {
5454 ...
5555 yui- js {
5656 munge: true
5757 preserve- semi: true
5858 }
5959}
60+ ```
6061
6162# see also
6263
You can’t perform that action at this time.
0 commit comments