Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# encoding: utf-8 

2from . import * 

3 

4def thumbnails( 

5 listItems=[] 

6): 

7 """ 

8 *Generate a thumbnail - TBS style* 

9 

10 **Key Arguments** 

11 

12 - ``htmlContent`` -- the html content of the thumbnail 

13  

14 

15 **Return** 

16 

17 - ``thumbnail`` -- the thumbnail with HTML content 

18  

19 """ 

20 theseItems = "" 

21 for item in listItems: 

22 theseItems = "%(theseItems)s %(item)s" % locals() 

23 

24 thumbnails = """<ul class="thumbnails" id=" ">%(theseItems)s</ul>""" % locals( 

25 ) 

26 

27 return thumbnails