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 blockquote( 

5 content="", 

6 source=False, 

7 pullRight=False): 

8 """ 

9 *Get HTML5 Blockquote* 

10 

11 **Key Arguments** 

12 

13 - ``content`` -- content to be quoted 

14 - ``source`` -- source of quote 

15  

16 

17 **Return** 

18 

19 - None 

20  

21 """ 

22 if source: 

23 source = """<small><cite title="%(source)s">%(source)s</cite></small>""" % locals( 

24 ) 

25 else: 

26 source = "" 

27 

28 if pullRight: 

29 pullRight = """class="pull-right" """ 

30 else: 

31 pullRight = "" 

32 

33 blockquote = """ 

34 <blockquote %(pullRight)s> 

35 <p>%(content)s</p> 

36 %(source)s 

37 </blockquote>""" % locals() 

38 

39 return blockquote