X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=templates%2Fdata%2Ffacet.html.ep;h=65d316f213a999f52cf8dfc875b21b3da08688b9;hb=a13ac2b2860144d8dc70b768dcc49aab5f13900e;hp=a7583b8dd1c747b802eb3adfd935fbcf66ec52bb;hpb=cfdaa5d6c8e961e2b82d58cb0f529a6b7eed1ff9;p=MojoFacets.git diff --git a/templates/data/facet.html.ep b/templates/data/facet.html.ep index a7583b8..65d316f 100644 --- a/templates/data/facet.html.ep +++ b/templates/data/facet.html.ep @@ -23,24 +23,30 @@ <%= include 'sorting' %> @@ -49,11 +55,44 @@ This can be changed in config. +
+ +
+Eval code on each facet $value and $count +
+$out->{sum} += $value * $count;
+$out->{sum}->{ $checked ? 'on' : 'off' } += $count;
+$checked = 1 if $count > 10;
+
+
+% if ( my $out = stash('out') ) { +
<%= dumper $out %>
+% } +% my $rows = scalar split(/\n/,param('code')); + + + +
+ % if ( $#$facet_names < 5000 ) { % } + % if ( $#$facet_names < 100 ) {
<%#= dumper $facet %>
% } + +