From 75ead417afd8d2b940b392736a0c9dc909556502 Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Sat, 11 Aug 2012 18:39:16 -0400 Subject: [PATCH] test : combo filter, sorting and hash history --- .../tests/2012-08-11-combo-sort-history.html | 177 ++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 _posts/tests/2012-08-11-combo-sort-history.html diff --git a/_posts/tests/2012-08-11-combo-sort-history.html b/_posts/tests/2012-08-11-combo-sort-history.html new file mode 100644 index 0000000..c309885 --- /dev/null +++ b/_posts/tests/2012-08-11-combo-sort-history.html @@ -0,0 +1,177 @@ +--- +title: Combo filters, sorting, AND hash history +layout: default +category: tests +schema: + - name: color + filters: [ red, blue, yellow ] + - name: size + filters: [ small, wide, tall, big ] + - name: shape + filters : [ round, square ] +--- + +
+

Filters can be combined. In addition to filtering for just .red or .tall, you can pass in a filter selector of both: .red.tall.

+
+ +
+
+

Filters

+ + {% for group in page.schema %} +
+

{{ group.name }}

+
    +
  • any + {% for filter in group.filters %} +
  • {{ filter }} + {% endfor %} +
+
+ {% endfor %} +
+ +

Sort

+ + + + +
+ +
+ {% for size in page.schema[1].filters %} + {% for shape in page.schema[2].filters %} + {% for color in page.schema[0].filters %} +
+ {% endfor %} + {% endfor %} + {% endfor %} + + + {% for color in page.schema[0].filters %} + {% for shape in page.schema[2].filters %} + {% for size in page.schema[1].filters %} +
+ {% endfor %} + {% endfor %} + {% endfor %} + +
+ + + + + +