Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 1 | #!python |
2 | |||||
3 | from webnotes.model.doc import getsingle | ||||
Rushabh Mehta | 9c7a01a | 2012-01-25 11:04:54 +0530 | [diff] [blame^] | 4 | from jinja2 import Template |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 5 | |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 6 | |
Rushabh Mehta | 9c7a01a | 2012-01-25 11:04:54 +0530 | [diff] [blame^] | 7 | temp = Template(""" |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 8 | <div class="layout_wrapper"> |
9 | <div id="content-home"> | ||||
Rushabh Mehta | 9c7a01a | 2012-01-25 11:04:54 +0530 | [diff] [blame^] | 10 | {{ home_settings.banner_html }} |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 11 | </div> |
12 | </div> | ||||
Rushabh Mehta | 9c7a01a | 2012-01-25 11:04:54 +0530 | [diff] [blame^] | 13 | """) |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 14 | |
15 | out = { | ||||
Rushabh Mehta | 9c7a01a | 2012-01-25 11:04:54 +0530 | [diff] [blame^] | 16 | "content": temp.render(home_settings = getsingle('Home Settings')) |
Rushabh Mehta | a8ad390 | 2012-01-25 10:37:35 +0530 | [diff] [blame] | 17 | } |