Skip to content

Commit 7d65833

Browse files
committed
Added documentation for ordered hashes
1 parent 242f3dc commit 7d65833

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Revision history for Perl extension CSS-Tiny
22

3+
1.19 Fri 3 Sep 2010
4+
- No functional changes
5+
- Resolved RT #59037: CSS::Tiny reorders rules
6+
- The use of Tie::IxHash to achieve ordering is now documented
7+
38
1.18 Fri 3 Sep 2010
49
- Resolved RT #60776: Parsing of multiple whitespace selectors
510
- Added test script specifically for RT regression tests

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use strict;
22
use vars qw{$VERSION};
33
BEGIN {
44
require 5.004;
5-
$VERSION = '1.18';
5+
$VERSION = '1.19';
66
}
77
use ExtUtils::MakeMaker;
88

lib/CSS/Tiny.pm

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package CSS::Tiny;
55
use strict;
66
BEGIN {
77
require 5.004;
8-
$CSS::Tiny::VERSION = '1.18';
8+
$CSS::Tiny::VERSION = '1.19';
99
$CSS::Tiny::errstr = '';
1010
}
1111

@@ -285,6 +285,27 @@ so that it can be dropped directly onto an XHTML page.
285285
When an error occurs, you can retrieve the error message either from the
286286
C<$CSS::Tiny::errstr> variable, or using the C<errstr> method.
287287
288+
=head1 CAVEATS
289+
290+
=head2 CSS Rule Order
291+
292+
While the order of rules in CSS is important, this is one of the features
293+
that is sacrificed to keep things small and dependency-free. If you need
294+
to preserve order yourself, we recommend that you upgrade to the more
295+
powerful L<CSS> module.
296+
297+
If this is not possible in your case, alternatively it can be done with the
298+
help of another module such as L<Tie::IxHash>:
299+
300+
my $css = CSS::Tiny->new;
301+
tie %$css, 'Tie::IxHash';
302+
$css->read('style.css');
303+
304+
Note: You will also need to remember to add the additional dependency to
305+
your code or module in this case.
306+
307+
=back
308+
288309
=head1 SUPPORT
289310
290311
Bugs should be reported via the CPAN bug tracker at

0 commit comments

Comments
 (0)