def _build_html_slider(slices_range, slides_klass, slider_id, start_value=None):
 if (start_value is None):
  start_value = slices_range[(len(slices_range) // 2)]
 return slider_template.substitute(slider_id=slider_id, klass=slides_klass, step=(slices_range[1] - slices_range[0]), minvalue=slices_range[0], maxvalue=slices_range[(-1)], startvalue=start_value)

def _build_html_slider ( slices_range , slides_klass , slider_id , start_value = None ) : if ( start_value is None ) : start_value = slices_range [ ( len ( slices_range ) // 2 ) ] return slider_template . substitute ( slider_id = slider_id , klass = slides_klass , step = ( slices_range [ 1 ] - slices_range [ 0 ] ) , minvalue = slices_range [ 0 ] , maxvalue = slices_range [ ( - 1 ) ] , startvalue = start_value )
build an html slider for a given slices range and a slices klass .