Skip to content

Commit 8a66cc4

Browse files
committed
Usage: add a paragraph about the Minify convenience class
1 parent c1c2448 commit 8a66cc4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

usage.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,12 +1122,13 @@ <h2>CSS style formatting</h2>
11221122
The convenience <a class="codeitem" href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/om/RGBStyleFormattingFactory.html">RGBStyleFormattingFactory</a>
11231123
serializes computed colors as RGB and may serve as a customization example.</p>
11241124
<h3 class="subtema" id="string-value-formatting">String value formatting</h3>
1125-
<p>There is also the possibility to customize the default serialization of string values, with the <a href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/CSSStyleSheetFactory.html#setFactoryFlag(byte)">CSSStyleSheetFactory.setFactoryFlag(byte)</a>
1125+
<p>There is also the possibility to customize the default serialization of string values, with the <a
1126+
class="codeitem" href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/CSSStyleSheetFactory.html#setFactoryFlag(byte)">CSSStyleSheetFactory.setFactoryFlag(byte)</a>
11261127
method. You can set two flags that govern which quotation you prefer, or keep the default behaviour:</p>
11271128
<ul><li><b>Default:</b> Try to keep the original quotation (single or double quotes), unless the alternative is more efficient.</li>
1128-
<li><b><a href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/om/AbstractCSSStyleSheetFactory.html#STRING_DOUBLE_QUOTE">STRING_DOUBLE_QUOTE</a>:</b>
1129+
<li><b><a class="codeitem" href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/om/AbstractCSSStyleSheetFactory.html#STRING_DOUBLE_QUOTE">STRING_DOUBLE_QUOTE</a>:</b>
11291130
Use double quotes unless single quotes are more efficient (when the string contains more double quotes than single).</li>
1130-
<li><b><a href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/om/AbstractCSSStyleSheetFactory.html#STRING_SINGLE_QUOTE">STRING_SINGLE_QUOTE</a>:</b>
1131+
<li><b><a class="codeitem" href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/om/AbstractCSSStyleSheetFactory.html#STRING_SINGLE_QUOTE">STRING_SINGLE_QUOTE</a>:</b>
11311132
Use single quotes unless double quotes are more efficient (when the string contains more single quotes than double).</li>
11321133
</ul>
11331134
</div>
@@ -1162,6 +1163,10 @@ <h2>Minification</h2>
11621163
return css;
11631164
}
11641165
</code></pre>
1166+
<p>Since css4j 4.2, the <a class="codeitem"
1167+
href="api/latest/io.sf.carte.css4j/io/sf/carte/doc/style/css/util/Minify.html">Minify</a> convenience
1168+
class does just that.
1169+
</p>
11651170
<h3 class="subtema" id="yuicompressor">Beware of YUI Compressor</h3>
11661171
<p>For further minification, you could choose to apply a specialized minification utility to the output of
11671172
<code>toMinifiedString()</code>, and <a href="https://github.com/yui/yuicompressor" target="_blank">YUI

0 commit comments

Comments
 (0)